Open remiphilippe opened 4 years ago
Just to add, I just tried running make debug
then make flash-only
, and it seems to work:
> format
2020-07-13 12:07:55,316 # format
2020-07-13 12:08:15,849 # erasing mtd... [OK]
2020-07-13 12:10:57,513 # formating /sda.... [OK]
It seems to exhibit the same behavior as here: https://github.com/RIOT-OS/RIOT/pull/11449#issuecomment-522617986
Hm, the problem described in https://github.com/RIOT-OS/RIOT/pull/11449#issuecomment-522617986 was fixed with #12035.
Just to add, I just tried running
make debug
thenmake flash-only
, and it seems to work:
This does not really make sense, since make debug
does nothing for ESP32. Maybe you just observed that it crashed on the first try, but worked on the second try because the flash already had a different content.
Have you tried to erase the flash completely
dist/tools/esptool/esptool.py --port /dev/ttyUSB0 erase_flash
before you flash your program?
I'm following the SPIFFs example (https://github.com/RIOT-OS/RIOT/tree/master/examples/filesystem) and test (https://github.com/RIOT-OS/RIOT/blob/master/tests/pkg_spiffs/main.c)
Do these programs work for you with this board?
I tried your code which works for me for the board.
> format
erasing mtd... [OK]
formating /sda.... [OK]
So I can't reproduce the problem.
Thanks for looking into it.
It failed about 50 times before I posted here, then make debug
and it worked like magic, but as you mentioned could be pure luck if make debug
doesn't really impact ESP32.
I can't remember if I used the erase_flash
on this board, but I can't seem to be able to reproduce since it worked.
I'll try when I order the same board again (in a week or so) and report here, for now, I think we can close this as unreproducible.
Description
Cannot format using vfs_format on Heltec Lora v2 (esp32-heltec-lora32-v2)
Steps to reproduce the issue
I'm following the SPIFFs example (https://github.com/RIOT-OS/RIOT/tree/master/examples/filesystem) and test (https://github.com/RIOT-OS/RIOT/blob/master/tests/pkg_spiffs/main.c)
Makefile (content related to fs):
Code (related to fs):
In main I also defined:
spiffs_desc.dev = _dev;
Expected results
memory gets formated, system doesn't reboot
Actual results
mdt_erase works fine, but there seems to be a crash (or a WDT reset I'm not 100% sure), in any case the board resets
Versions
BUILD_IN_DOCKER=1 Master Branch on commit:
c56147d33e234bd5e7186b905e3a073a50c9b8ac
Docker Image details: