AtomVM icon indicating copy to clipboard operation
AtomVM copied to clipboard

Upload address for atomvm image with ESP32-S3 module

Open dischoen opened this issue 2 years ago • 2 comments

Hi,

I wanted to try AtomVM on a ESP32-S3-DEV-KIT-N8R8. Initially I had errors of the kind

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x7 (TG0WDT_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40043ac8
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3818,len:0x13a0
load:0x206f7420,len:0x69726576
Invalid image block, can't boot.
ets_main.c 329

For me, the problem was solved by uploading to address 0x0000 instead of 0x1000. I thought to notify you because the startup guide for ESP32 modules talks about address 0x1000. (https://www.atomvm.net/doc/master/getting-started-guide.html#flashing-a-binary-image)

Maybe the memory layout in regard to start address is different for various ESP32 modules?

I have an example project here: https://github.com/dischoen/atomvm_hello_world

dischoen avatar Jan 03 '24 12:01 dischoen

Excellent, thanks for your input. We’ll take a look at other modules and maybe create a table in the docs for different ESP modules.

fadushin avatar Jan 03 '24 13:01 fadushin

This is definitely something we overlooked in the documentation! I am preparing some documentation updates and will add a table with the bootloader offsets for each chip to the Getting Started guide. Thank you for pointing out this oversight.

UncleGrumpy avatar Jan 05 '24 16:01 UncleGrumpy