Page 1 of 1

ESP32 S2 flashes but monitor shows invalid header: 0xffffff0f error

Posted: Thu Aug 12, 2021 4:41 am
by dininduwara
Hi!

I just ordered my first ESP32 S2 development board (ESP32-S2 Saola 1R Dev Kit featuring ESP32-S2 WROVER https://core-electronics.com.au/esp32-s ... rover.html)

However after flashing the hello_world program using the idf.py tool, I get the following error:

Code: Select all

ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x1 (POWERON),boot:0x1f (SPI_FAST_FLASH_BOOT)
invalid header: 0xffffff0f
invalid header: 0xffffff0f //spams this continuously
Image

The tool appears to flash everything correctly, but all I get "invalid header: 0xffffff0f" spammed on my console.

Any help would be appreciated. Thanks!

Re: ESP32 S2 flashes but monitor shows invalid header: 0xffffff0f error

Posted: Thu Aug 12, 2021 10:02 am
by ESP_Sprite
How exactly are you flashing this? It feels like you only flashed the app, not the bootloader.

Re: ESP32 S2 flashes but monitor shows invalid header: 0xffffff0f error

Posted: Thu Aug 12, 2021 4:04 pm
by chegewara
How about strapping pins? It looks to me like you may have some pins in wrong state.

Code: Select all

rst:0x1 (POWERON),boot:0x1f (SPI_FAST_FLASH_BOOT)
Here is normal boot:

Code: Select all

rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)

Re: ESP32 S2 flashes but monitor shows invalid header: 0xffffff0f error

Posted: Thu Aug 12, 2021 11:07 pm
by dininduwara
ESP_Sprite wrote:
Thu Aug 12, 2021 10:02 am
How exactly are you flashing this? It feels like you only flashed the app, not the bootloader.
I'm flashing it via usb, following the documentation here: https://docs.espressif.com/projects/esp ... ep-by-step

Re: ESP32 S2 flashes but monitor shows invalid header: 0xffffff0f error

Posted: Thu Aug 12, 2021 11:08 pm
by dininduwara
chegewara wrote:
Thu Aug 12, 2021 4:04 pm
How about strapping pins? It looks to me like you may have some pins in wrong state.

Code: Select all

rst:0x1 (POWERON),boot:0x1f (SPI_FAST_FLASH_BOOT)
Here is normal boot:

Code: Select all

rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
Sorry for the newb question, but how would I do that?

Re: ESP32 S2 flashes but monitor shows invalid header: 0xffffff0f error

Posted: Fri Aug 13, 2021 2:38 am
by ESP_Sprite
dininduwara wrote:
Thu Aug 12, 2021 11:07 pm

I'm flashing it via usb, following the documentation here: https://docs.espressif.com/projects/esp ... ep-by-step
So just to check, you're using 'idf.py -p PORT flash', and not app_flash or some other idf.py command? Do you get any warnings while flashing?

Re: ESP32 S2 flashes but monitor shows invalid header: 0xffffff0f error

Posted: Fri Aug 13, 2021 2:56 am
by dininduwara
Thank you all for the responses.
After some tinkering I randomly managed to get it to work.

First I flashed, then held down the boot btn, press reset and then disconnect power and reconnect. I had tried all these steps previously, but it only worked in this order.