RAM to FLASH migration

ivand58
Posts: 10
Joined: Tue May 10, 2022 7:10 am

RAM to FLASH migration

Postby ivand58 » Sat May 28, 2022 10:08 am

Hi
Is it possible to flash an image from elf file and to instruct the boot loader to mimic "load_ram" command ?

I have a code that works with direct loading in RAM :

Code: Select all

esptool.py load_ram [/Codebox]
and I'd like to flash it in a partition so that the second stage boot loader will load it in the RAM and start it.

ESP_Sprite
Posts: 8921
Joined: Thu Nov 26, 2015 4:08 am

Re: RAM to FLASH migration

Postby ESP_Sprite » Sun May 29, 2022 1:32 am

You should be able to take your elf file and feed it to `esptool.py elf2image` to generate a flashable image.

ivand58
Posts: 10
Joined: Tue May 10, 2022 7:10 am

Re: RAM to FLASH migration

Postby ivand58 » Sun May 29, 2022 6:27 am

Thank you @ESP_Sprite,

I have the image for the RAM, is it the same for the flash?

The remaining part of the question is how to incorporate this image with the bootlader?

Also would you please tell me how to write it at a specific partition if it is not joined with the bootloader (i.e. how to find the correct place for writing)?

ESP_Sprite
Posts: 8921
Joined: Thu Nov 26, 2015 4:08 am

Re: RAM to FLASH migration

Postby ESP_Sprite » Mon May 30, 2022 3:10 am

I think you should be able to flash it either as the bootloader, or as an app (in place of the app ESP-IDF produces). Either way, the code doesn't need to be appended or anything: simply flash it to the correct partition/location and it should work.

Who is online

Users browsing this forum: Google [Bot], MikeMyhre and 137 guests