FiPy Crashing on boot.
-
@smaug I had that when the firmware image was too large for the partition. Even if that's not to be expected when you run 1.18.0.r1, try the option "full erase" at the firmware upload. The re-builds the flash landscape.
Edit: Are you just using the Pycom firmware or an self made image with many frozen modules? -
This post is deleted! -
@robert-hh Thank you for the reply! Unfortunately that didn't help. I've tried the "full erase" option every time I've reflashed trying to get this resolved. Yes, I am using Pycom's utility to flash.
-
@smaug Try esptool.py for flash erase. Then you're sure to have a clean starting state.
-
@robert-hh I'll try that. Do you know the correct command arguments for that? I have this command for flashing .bin files to an ESP32 devkitC:
esptool.py \ --chip esp32 \ --port /dev/tty.SLAB_USBtoUART \ --baud 921600 \ --after hard_reset write_flash \ -z \ --flash_mode dio \ --flash_freq 40m \ --flash_size detect \ 0x1000 bootloader.bin \ 0x8000 partitions_espruino.bin \ 0x10000 espruino_esp32.bin -
@robert-hh as usual, you have to specify port and baudrate with -p and -b, the chip with -c, and the operation is erase_flash. The device has to be in bootloader mode, GPIO0 at GND. Like
esptool.py -p /dev/.... -b921600 --chip esp32 erase_flash
If in doubt, try esptool.py --help -
@robert-hh Thank you for that. I've erased flash with esptool.py and then uploaded v1.18r1 using Pycom's software. The device still cannot boot into micropython :(. UART messages below:
ets Jun 8 2016 00:22:57 rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff8028,len:8 load:0x3fff8030,len:1728 load:0x4009fa00,len:0 load:0x4009fa00,len:14584 entry 0x400a059c user code doneets Jun 8 2016 00:22:57 rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff8028,len:8 load:0x3fff8030,len:1728 load:0x4009fa00,len:0 load:0x4009fa00,len:14584 entry 0x400a059c E (404) esp_image: Checksum failed. Calculated 0x54 read 0x7c -
@smaug That's strange. What's the difference between the two dumps?
-
@robert-hh The top dump happens first, then the bottom dump. The only difference between them is the last line.
user code donevs
E (404) esp_image: Checksum failed. Calculated 0x54 read 0x7cClarification: Every dump I've posted is from a different attempt to boot into micropython, usually after pressing the reset button or powering up.
-
It seems that the FTDI chip I was using started to brown out. I switched to external power with a DC supply and everything is back to normal. I should've tried that first. I didn't even think of it since for the first couple of weeks the FTDI chip had no issues supplying sufficient power. Regardless, thank you very much for your help @robert-hh
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login