esptool load_ram

espola
Posts: 7
Joined: Thu Feb 02, 2017 4:31 pm

esptool load_ram

Postby espola » Fri Jun 02, 2017 1:34 pm

Hi All!
Is the esptool load_ram option working?
During rf verification in production I would like to run the rf verification fw from RAM instead of flash. This would also be my preferred way of running rf verification for devices returned from customers. However if I try to use the load_ram option I get the error messages listed in the console log below.
Any help is appreciated!

Console log for esptool:

Code: Select all

python /f/git/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port com25 --baud 921600 load_ram esp32_certification_and_test_en_20170602/ESP32_FCC_WIFI_BT_20170502.bin                                                                                             esptool.py v2.0-beta1
Connecting......
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
WARNING: Suspicious segment 0x0, length 0
WARNING: Suspicious segment 0x0, length 0
WARNING: Suspicious segment 0x40080000, length 172476
RAM boot...
Traceback (most recent call last):
  File "F:/git/nina-w1/component/cb_rtsl_esp32/esp-idf/components/esptool_py/esptool/esptool.py", line 2261, in <module>
    main()
  File "F:/git/nina-w1/component/cb_rtsl_esp32/esp-idf/components/esptool_py/esptool/esptool.py", line 2060, in main
    operation_func(esp, args)
  File "F:/git/nina-w1/component/cb_rtsl_esp32/esp-idf/components/esptool_py/esptool/esptool.py", line 1503, in load_ram
    for (offset, size, data) in image.segments:
TypeError: 'ImageSegment' object is not iterable

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: esptool load_ram

Postby ESP_igrr » Fri Jun 02, 2017 2:36 pm

If you want to use load_ram option, make sure that the application doesn't have any sections placed into flash. Esptool points out that there is a section mapped at 0x40080000, which is the base address of memory-mapped flash region.

You can check the sections of the elf file using 'xtensa-esp32-elf-objdump -h elf_file_name'

Who is online

Users browsing this forum: No registered users and 90 guests