-
Notifications
You must be signed in to change notification settings - Fork 4
Demo code hangs at write on ESP32 #31
Comments
The address it is reading from / writing to looks a bit weird in your logs: |
I can confirm that the |
On what chip exactly? (including revision) For all chips except ESP32 we just call the ROM functions, On ESP32 unfortunately we have to do a bit more (but not that much more) |
|
Thanks - looks like the same I have here:
|
I have copied the example code into my own project created with Maybe you can help me to run the example in the same way as you do? I get:
|
Oh, thinking about it… I had to change the demo code at one point, because this doesn't work: #[cfg(feature = "esp32")]
let system = peripherals.DPORT.split();
In general, could you explain the relevance of the timer setup code as used in the demo for the Flash access? I don't understand why I need to get a timer group and one time from it, but the timer is never used later on. |
Ah maybe you don't have With Or you can try In a generated project you don't need |
The demo uses an older version of ESP-HAL and we renamed The whole timer thing in the demo is also because of the older HAL version: now we deactivate the watchdog-timer in HAL before running user-code. Before the user had to deactivate the WDT manually .... and now I'm wondering if anything changed in esp-hal which breaks esp-storage 🤔 So would be great if you could check if it's working in the repository without any changes |
Ok doesn't seem like there is anything changed in esp-hal causing any problems here |
The example run from a fresh clone of the repository also hangs, both with espflash and cargo-espflash. |
Surprisingly, the first read already returns only
|
All Could you post the full output (including messages from the 2nd stage bootloader and the ROM)? |
|
Good news .... I finally found a board showing that behavior. Bad news: it's a revision 3 (so if I can fix it we don't know if it fixes your problems) and I currently wonder why that is happening only on that board |
If it helps, I can give you access to an environment with the board using |
I traced it to Line 44 in f046349
|
@Natureshadow could you try the branch https://github.com/esp-rs/esp-storage/tree/fix-some-esp32 ? |
Done. Works ☺! |
Thanks! Will do some cleanup and then this is hopefully solved |
Hi, I can also confirm it works now. Thank you! |
Hi,
I'm using a Lilygo Lora32 T3 1.6.1 board with an ESP32 chip. I'm not sure what I'm doing wrong, but the write operations block forever.
The command I used to start the demo:
cargo +esp run --release --example demo --features esp32 --target xtensa-esp32-none-elf
I tried with new esp-hal versions, with a pull request to disable the other core, and I originally reproduced this while using embassy.
The output:
The text was updated successfully, but these errors were encountered: