-
Notifications
You must be signed in to change notification settings - Fork 36
board: Huidu Hd wf2/wf4 flash dio mode #100
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
Conversation
Does the board has PSRAM? If not there is something wrong with the boards.json |
It does not have PSRAM chip. It has 8MiB flash chip |
This is an ESP32-S3, right? Since the S3 does have a rather nasty track record on aweful strict flash/PSRAM configuraton demands, could it be that simply setting the PSRAM does also change some other mode for flash interactions or simply adds enough wait states when interacting with the flash? |
The issues you see with LittleFS and NVRAM are typical for wrong flash mode. |
this is what I can get out of it
Chip label has Espressif's logo and There is definitely something with SPI NOR flash chip since replacing the flash resolves the issue. Either some internal command or, maybe, |
Hmm the fact you mention it is NOR flash instead of NAND made me wonder what exactly is the difference here. This site mentions that NAND flash is typically faster than NOR flash. Especially when erasing data. Or am I mistaken here and is all flash for ESP-like board just NOR flash? |
Flash mode QIO has to be supported in specific vendor source code in IDF. Either replace flash (as you did already) or use flash mode DIO / DOUT. |
If you tried WLED, that's highly problematic. WLED uses old bootloaders which are only working correctly with mode DOUT / DIO. |
NAND's has different organization, it can't access data per byte, only by page/block. So it does not allow executing code from ROM. All esp's are using NORs for code storage. @Jason2866 if I'm not mistaken |
No flash mode setup is which Flash mode is used when running the firmware! |
Honestly I doubt your setup for mode DIO was correct |
anything except Wonder how it works with |
Could be that the PSRAM flag also changes flags for the compiler/linker to place some specific functions in IRAM which may result in less read access to the flash chip, which may just be enough to let it pass some tests during boot. |
Maybe low quality Flash chips needs 40Mhz flash frequency too. |
- set dio flash mode for hd-wf boards - add hd-fw4 board
bd7ebc4
to
5e9e6a3
Compare
OK, so with another bunch of tests. Indeed you was right @Jason2866, it works with Thanks a lot for the help on this! |
@vortigont Do you know a source for the wf4 board (esp32-s3)? Prefered Aliexpress (delivery country Germany) |
@Jason2866 I've bought mine from this store sometime ago. |
Thx. No items listed. Probably not selling to Germany |
for some strange reason this board's flash needs "BOARD_HAS_PSRAM" flag otherwise it starts in some wrong (RO?) mode were both NVRAM and LittleFS mount fails