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

SPIFFS Failing on a 32MB 8MB ESP32-S3-DevKitC1 #579

Closed
GameTec-live opened this issue Dec 27, 2023 · 18 comments
Closed

SPIFFS Failing on a 32MB 8MB ESP32-S3-DevKitC1 #579

GameTec-live opened this issue Dec 27, 2023 · 18 comments

Comments

@GameTec-live
Copy link

GameTec-live commented Dec 27, 2023

Bug report

ESP32-S3-DevKitC-1 8M PRAM 8MB Flash

Problem
On a ESP32-S3-DevKitC-1 8M PRAM 8MB Flash i can compile and flash the Chip but SPIFFS Seems completly broken. It cant mount, format or similar and therefore it doesnt work and constantly breaks.

Probalby not relevant, but im trying to drive a LED Matrix...

Steps

  1. Expand the Demo script to use the esp32-s3...
    image

  2. Enable Wifi and Webserver / Anything that needs IPFSS

  3. See it fail

Yes, i have tried to add in other parametrs like using the 8MB table:
image

Example

Notes

@robertlipe
Copy link
Contributor

robertlipe commented Dec 27, 2023 via email

@GameTec-live
Copy link
Author

I use the 16mb versions of those boards. They're fine with spiffs. Have
you perhaps reused the gpio lines that are repurposed for spi flash/ram?

Does the board. Pass the psram test earlier?

On Wed, Dec 27, 2023, 7:13 AM GameTec-live @.***> wrote:

Bug report

ESP32-S3-DevKitC-1 8M PRAM 8MB Flash

Problem
On a ESP32-S3-DevKitC-1 8M PRAM 8MB Flash i can compile and flash the Chip
but SPIFFS Seems completly broken. It cant mount, format or similar and
therefore it doesnt work and constantly breaks.

Probalby not relevant, but im trying to drive a LED Matrix...

Steps

Expand the Demo script to use the esp32-s3...
image.png (view on web)
https://github.com/PlummersSoftwareLLC/NightDriverStrip/assets/66077766/84cf9b17-6f50-4c80-9b99-0d0babe141d9
2.

Enable Wifi / Anything that needs IPFSS
3.

See it fail

Yes, i have tried to add in other parametrs like using the 8MB table:
image.png (view on web)
https://github.com/PlummersSoftwareLLC/NightDriverStrip/assets/66077766/fa58ae7a-afc9-4d22-8aaf-c7848ae68e1a

Example

Notes


Reply to this email directly, view it on GitHub
#579, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ACCSD3ZG5W4ZVETAS54ISW3YLQNHLAVCNFSM6AAAAABBELJDCSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2TOMZVHE3TONI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

There's one with 16MB flash? Oh wow...
And what psram tests are we talking about? I don't see any in the pio menu?

@GameTec-live GameTec-live changed the title SPIFFS Failing on a 16MB ESP32-S3-DevKitC1 SPIFFS Failing on a 8MB ESP32-S3-DevKitC1 Dec 27, 2023
@GameTec-live
Copy link
Author

the plot thickens... the box has 2 stickers on top of each other, top one stating its a n8r8 with 8 flash and 8 PSRAM, the one below saying its a n32r8v which would mean it has 32 flash and 8 psram. The chip on the board is a wroom2, so i got the one with more flash as no wroom2 with 8mb exists?

@GameTec-live
Copy link
Author

GameTec-live commented Dec 27, 2023

Okay, i do have the ESP32-S3-DevKitC-1-N32R8V apperently... 32MB Flash and 8MB PSRAM. Redid the entire setup so that i can document the exact changes i made and the result.
PlatformIO under the [env:demo]:

  • change extends to dev_32-s3
  • change build flags to ${dev_esp32-s3.build_flags}
  • add ${psram_flags.build_flags}
  • add board_build.partitions = config/partitions_custom_8M.csv
  • add board_upload.flash_size = 32MB (i also tried leaving it at 8MB, samilar issue)
  • add board_build.flash_mode = dio (it looks right from what i understand from the docs, but i have no clue about what exactly...)
  • add board_build.arduino.memory_type = opi_opi (i also tried with the flash_size at 8M like in dev_mesmerizer, doesnt work either)

Log from clicking on "monitor":
https://hastebin.skyra.pw/pupecadaje.yaml

My globals.h:
globals.h.txt

image

@GameTec-live GameTec-live changed the title SPIFFS Failing on a 8MB ESP32-S3-DevKitC1 SPIFFS Failing on a 32MB 8MB ESP32-S3-DevKitC1 Dec 27, 2023
@GameTec-live
Copy link
Author

it looks like the watchdog is timing out? Setting the led matrix to 2x2 for example works fine, theory of someone i talked to is that its trying to adress all of the LEDs which arent attached rn (testing on the bench) and therefore they all time out after one another, this results in a watchdog timeout?

@GameTec-live
Copy link
Author

this pio config now seems to work... ill just reopen this issue if any more issues arrise:

[env:demo]
extends         = dev_esp32-s3
build_flags     = -DDEMO=1
                  ${dev_esp32-s3.build_flags}
                  ${psram_flags.build_flags}
board_build.partitions = config/partitions_custom_8M.csv
board_upload.flash_size = 32MB
board_build.flash_mode = qio
board_build.arduino.memory_type = opi_opi

@robertlipe
Copy link
Contributor

robertlipe commented Dec 28, 2023 via email

@GameTec-live
Copy link
Author

@robertlipe thanks for that information, but...
Another issue cropped up... i can configure it to drive a 30x30 matrix and fun stuff like that, but driving a 50x30 or 50x50 matrix is impossible without it panicing? (StoreProhibited)

Monitor Log:
https://hastebin.skyra.pw/wikevijele.yaml

@GameTec-live GameTec-live reopened this Dec 28, 2023
@rbergen
Copy link
Collaborator

rbergen commented Dec 28, 2023

This seems to be a completely different problem indeed, maybe related to #534 (but, maybe not). To avoid confusion about what Issue discusses which scenario, please open a new Issue for the problem you're now running into. I'm closing this one, again.

@rbergen rbergen closed this as completed Dec 28, 2023
@GameTec-live
Copy link
Author

it only happens on the esp32-s3 and when trying to drive a larger led strib matrix though, works fine on my other, less powerfull esp... (still just the rainbow effect, nothing special)

@GameTec-live
Copy link
Author

but sure, ig ill just open a new issue then

@rbergen
Copy link
Collaborator

rbergen commented Dec 28, 2023

Thanks. This issue discusses a problem with SPIFFS on the device in question. You're now running into a problem with driving larger matrices, which really is a different issue.

As a general rule, we like to keep issues as focused as possible, as they represent potential work items. Discussions in the equally named section of this repo are known to (and allowed to) meander a bit - or sometimes a lot - more.

@robertlipe
Copy link
Contributor

robertlipe commented Dec 28, 2023 via email

@GameTec-live
Copy link
Author

1500 LEDs... (50x30 matrix) The generic normal esp32 i got there runs the exact same config flawless (globals.h config), just had to disable the webserver, and some other stuff id like to have, to get a decent performance over the network, so i thought id get a more powerful chip to replace it which then should be able to provide the web ui, etc...

@robertlipe
Copy link
Contributor

robertlipe commented Dec 28, 2023 via email

@GameTec-live
Copy link
Author

Created a new issue as requested... #580
Have a good night robertlipe...

@robertlipe
Copy link
Contributor

robertlipe commented Sep 16, 2024

@GameTec-live , please email me. I have something I'd like to discuss with you.

@GameTec-live
Copy link
Author

@robertlipe should be done

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

3 participants