Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file upload always rejected #962

Closed
ghost opened this issue Nov 8, 2023 · 51 comments
Closed

file upload always rejected #962

ghost opened this issue Nov 8, 2023 · 51 comments

Comments

@ghost
Copy link

ghost commented Nov 8, 2023

SD-files on card not shown, upload new files gets rejected after showing progress bar.

I have formatted the sd card with fat32.
I am using an ESP32-CAM board.
I have run a script that reads, writes, appends data to the sd card and it reported file actions as successful.
I have created a test.txt file on the SD-card.

Using the ESP3D web view the SD card is shown as empty (the file test.txt is not shown)
Trying to upload a gcode file always gets rejected with error 12, sometimes immediately, somtimes after showing a partial progress bar.

ESP3D Firmware: 2.1.3b0

  • Wifi mode: AP

  • Flash method: [Arduino Ide 2.2.1]

  • Any change done in FW: None

Target Firmware: Marlin

Board Name: ESP32-CAM

Error on console:

11:29:15.819 -> M117 SD upload failed
11:29:17.819 -> Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
11:29:17.819 -> Core 1 register dump:
11:29:17.819 -> PC : 0x400e1744 PS : 0x00060430 A0 : 0x800e1820 A1 : 0x3ffb1ad0
11:29:17.819 -> A2 : 0x00000000 A3 : 0x3ffb1b1f A4 : 0x00000001 A5 : 0x00000001
11:29:17.819 -> A6 : 0x00000001 A7 : 0x00000000 A8 : 0x00000000 A9 : 0x00000000
11:29:17.852 -> A10 : 0x3ffd21d8 A11 : 0x00000000 A12 : 0x3ffc1b4c A13 : 0x3ffc74b8
11:29:17.852 -> A14 : 0x3ffc1b40 A15 : 0x3ffc74b8 SAR : 0x0000000a EXCCAUSE: 0x0000001c
11:29:17.852 -> EXCVADDR: 0x00000008 LBEG : 0x4008c149 LEND : 0x4008c159 LCOUNT : 0xffffffff
11:29:17.852 ->
11:29:17.852 -> ELF file SHA256: 0000000000000000
11:29:17.883 ->
11:29:17.883 -> Backtrace: 0x400e1744:0x3ffb1ad0 0x400e181d:0x3ffb1af0 0x4018cc9d:0x3ffb1b10 0x400e3c41:0x3ffb1b40 0x400e4861:0x3ffb1b60 0x400e5759:0x3ffb1d60 0x400e6e79:0x3ffb1f20 0x400d82d9:0x3ffb1f70 0x400d833a:0x3ffb1f90 0x400ede08:0x3ffb1fb0 0x4008dde6:0x3ffb1fd0
11:29:17.883 ->
11:29:17.883 -> Rebooting...

@ghost ghost added the bug label Nov 8, 2023
Copy link

github-actions bot commented Nov 8, 2023

Thank your for submiting, please be sure you followed template or your issue may be dismissed. if you deleted the template it is here

@luc-github
Copy link
Owner

luc-github commented Nov 8, 2023

ESP32 Cam is not supported in ESP3D 2.1 (only 3.0) also ESP3D 2.1 does not allow direct Sd access (only 3.0), so the card you try to acces is printer one using M28/M29 protocol
Is that the case ?

You did not shared the configuration you set in esp3d so it is hard to know what the issue is

@ghost
Copy link
Author

ghost commented Nov 8, 2023 via email

@ghost
Copy link
Author

ghost commented Nov 8, 2023 via email

@luc-github
Copy link
Owner

luc-github commented Nov 9, 2023

On ESP32 Cam the Connected SD is used to save frame from Camera, currently there is no way to share this SD with printer, so even you upload file on it the printer won't see it. Also ESP3D does not have streaming feature for 3D printer only basic one for CNC GRBL and even this one is not optimized for laser usage.
The #243 give current status on ESP3D - and the SD usage is still valid here : #540 (comment)

NOTe: About Jason Winfield. video you can enable subtitle and enable automatic translation

@ghost
Copy link
Author

ghost commented Nov 9, 2023 via email

@luc-github
Copy link
Owner

it have been fixed this morning #963 - you need to sync your download with latest code

@ghost
Copy link
Author

ghost commented Nov 10, 2023 via email

@luc-github
Copy link
Owner

are you using the correct version of SSDP ? the one I provide in repository

@ghost
Copy link
Author

ghost commented Nov 10, 2023 via email

@luc-github
Copy link
Owner

are you compiling using arduino or platformio ?
you error seems showing you compile from Arduino ide

@ghost
Copy link
Author

ghost commented Nov 10, 2023 via email

@luc-github
Copy link
Owner

then as mentioned in doc https://esp3d.io/esp3d/v3.x/installation/arduino/index.html
image

@ghost
Copy link
Author

ghost commented Nov 10, 2023 via email

@ghost
Copy link
Author

ghost commented Nov 10, 2023 via email

@luc-github
Copy link
Owner

let me guess you:
enabled pin reset on esp32cam?
or you enabled sd as spi card reader

@ghost
Copy link
Author

ghost commented Nov 10, 2023 via email

@luc-github
Copy link
Owner

I doubt this is the configuration.h
most of configuration are missing

@ghost
Copy link
Author

ghost commented Nov 10, 2023 via email

@ghost
Copy link
Author

ghost commented Nov 10, 2023 via email

@luc-github
Copy link
Owner

luc-github commented Nov 11, 2023

yes if you enabled SD updater, but it is optionnal, only useful if you want to change a setting using this method
https://esp3d.io/esp3d/v3.x/documentation/update/index.html

@luc-github
Copy link
Owner

@juergmaier I found a glitch in code that was introduced with recent PR that mess up the reset and in some occasion and lead to dead loop reset at start
You may want to try latest git to confirm that was your issue

@ghost
Copy link
Author

ghost commented Nov 13, 2023 via email

@luc-github
Copy link
Owner

luc-github commented Nov 13, 2023

the partition for ESP3Cam with ESP3D should be min_spiffs.csv https://github.com/espressif/arduino-esp32/blob/master/tools/partitions/min_spiffs.csv, I never had such message
About SD I do not know how you configured it in configuration.h so I have no clue
You can configure ESP3D using web interface or serial terminal by ESPdirect commands

I encourage you to read the doc : https://esp3d.io/esp3d/v3.x/documentation/commands/index.html

Define IP value / Mask / Gateway/ DNS , then move to Static IP instead of Default DHCP, but be sure your setting match your network

@ghost
Copy link
Author

ghost commented Nov 13, 2023 via email

@ghost
Copy link
Author

ghost commented Nov 13, 2023 via email

@luc-github
Copy link
Owner

are you in Access Point or Client Mode ?

@ghost
Copy link
Author

ghost commented Nov 14, 2023 via email

@luc-github
Copy link
Owner

you do not know your own setup ?.....
So why willing to change the ip address ?
Access point mode : you connect to esp board wifi with your PC to esp network

Client mode : the esp joint your local wifi and can access it thrue your local network

@ghost
Copy link
Author

ghost commented Nov 14, 2023 via email

@luc-github
Copy link
Owner

luc-github commented Nov 14, 2023

well in access mode you are on limited network of esp so there no magic solution for you esp to access internet
The access point is made for configuration purpose not daily usage

you must make.the.esp to join your local network, so after you can access to internet

@ghost
Copy link
Author

ghost commented Nov 14, 2023 via email

@luc-github
Copy link
Owner

why change ip to static ? as you seems.not handling network per your feedback it is sireit won'tbe properly configured.
[ESP110]WIFI-STA is the command to switch to Station mode

@ghost
Copy link
Author

ghost commented Nov 14, 2023 via email

@luc-github
Copy link
Owner

[ESP100] with your acces point SSID
[ESP101] with your acces point password
if any of them is wrong so ESP3D cannot join wifi it fall back to ESP3D access point mode to let you fix your issue

@ghost
Copy link
Author

ghost commented Nov 14, 2023 via email

@luc-github
Copy link
Owner

what is your opereating system ?

@ghost
Copy link
Author

ghost commented Nov 14, 2023 via email

@luc-github
Copy link
Owner

esp3d is discoverable if you do not know the ip using one of these tools :
https://esp3d.io/tools/discovery/

@ghost
Copy link
Author

ghost commented Nov 14, 2023 via email

@luc-github
Copy link
Owner

check what [ESP420] give as output

@ghost
Copy link
Author

ghost commented Nov 15, 2023 via email

@luc-github
Copy link
Owner

SDK: v4.4.5 this is not correct you must have SDK 4.4.4
What esp32 arduino core are you using ? you are supposed to use 2.0.8 : https://esp3d.io/esp3d/v3.x/installation/arduino/index.html

@luc-github
Copy link
Owner

also HTTP port: 23 is wrong it should be 80 that is why you cannot connect

@ghost
Copy link
Author

ghost commented Nov 15, 2023 via email

@luc-github
Copy link
Owner

luc-github commented Nov 15, 2023

you use wrong core - a one I never tested so can be anything else wrong anywhere

@ghost
Copy link
Author

ghost commented Nov 15, 2023 via email

@luc-github
Copy link
Owner

@ghost
Copy link
Author

ghost commented Nov 15, 2023 via email

@luc-github
Copy link
Owner

luc-github commented Dec 1, 2023

your issue looks related to your platfom and installation setup

Did you solved it ?

Copy link

github-actions bot commented Jan 3, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant