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

Corrupted filesystem after uploading the firmware. #7

Closed
HabibMCS opened this issue Jul 2, 2023 · 10 comments
Closed

Corrupted filesystem after uploading the firmware. #7

HabibMCS opened this issue Jul 2, 2023 · 10 comments

Comments

@HabibMCS
Copy link

HabibMCS commented Jul 2, 2023

"The filesystem appears to be corrupted. If you had important data there, you
may want to make a flash snapshot to try to recover it. Otherwise, perform
factory reprogramming of MicroPython firmware (completely erase flash, followed
by firmware programming)."

I used the 16mb flash, with qio, in thonny at 408600 baud rate. After pressing Ctrl+ C
error2
the code runs but before it we get this issue.
error_thonny

@russhughes russhughes pinned this issue Jul 2, 2023
@russhughes
Copy link
Owner

The size or location of the file partition may have changed. Erasing the flash and reflashing the MicroPython firmware should solve the problem.

@HabibMCS
Copy link
Author

HabibMCS commented Jul 2, 2023

I am using thonny IDE for flashing the firmware. I erased and reflashed it several times. I have also tried "https://github.com/russhughes/st7789_mpy/tree/master/firmware/GENERIC_S3_7789" flashing this one, it was not giving the error but the one in this repository is causing the issue.

Also I am not able to save any file in the Micropython device. It says backend terminated.

@russhughes
Copy link
Owner

Could you check that Thonny is uploading the firmware to the correct starting address, 0x0 for the ESP32-S3, not the address 0x1000 used by the original ESP32 chip?

@HabibMCS
Copy link
Author

HabibMCS commented Jul 3, 2023

It was detected automatically as 0x0, flash memory i used 16MB and in qio mode at baudrate 460800. I will check on same firmware on similar board and will check if it shows again or not "https://github.com/Xinyuan-LilyGO/T-Display-S3"
my display board is same as this one.

@russhughes
Copy link
Owner

That should work. I use T-Display-S3s all the time. I'll test one tonight. Here is the driver I use for T-Display-S3s these days: https://github.com/russhughes/s3lcd

@russhughes
Copy link
Owner

Use the S3LCD_OCT_16M firmware. See the README.md in the firmware folder for a list of
devices and which firmware to use.

@HabibMCS
Copy link
Author

HabibMCS commented Jul 3, 2023

S3LCD_OCT_16M: Octal SPIRAM 16M Flash
I will try this one and will let you know
Thanks for your replies, 🙏

@HabibMCS
Copy link
Author

HabibMCS commented Jul 4, 2023

same issue again
image

@HabibMCS
Copy link
Author

HabibMCS commented Jul 4, 2023

I ordered new one and tried to flash in it, it worked fine and there is no error in it. It was the hardware issue most probably. Thanks for your replies again🙏

@HabibMCS
Copy link
Author

HabibMCS commented Jul 4, 2023

One more thing I figured out. First I tried to flash arduino ide bootloader in it with wrong settings. It was flashed at wrong memory location. So when I tried to upload the micropython, previous bootloader was not erased properly. That caused an issue.

@HabibMCS HabibMCS closed this as completed Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants