Hi,
I want to speed up development and use "load_ram" in esptool.py .
First I've done
"make app"
$ python /C/esp32/esp32_sdk/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port COM15 --baud 115200 load_ram /C/esp32/tests/ESP32_CAN_demo/build/CAN_demo.bin
esptool.py v2.0-beta1
Connecting.....
Uploading stub...
Running stub...
Stub running...
WARNING: Suspicious segment 0x0, length 0
WARNING: Suspicious segment 0x0, length 0
WARNING: Suspicious segment 0x0, length 65512
WARNING: Suspicious segment 0x3f400010, length 25016
WARNING: Suspicious segment 0x3ffb0000, length 9276
WARNING: Suspicious segment 0x40080400, length 81036
RAM boot...
Traceback (most recent call last):
File "C:/esp32/esp32_sdk/esp-idf/components/esptool_py/esptool/esptool.py", line 2261, in <module>
main()
File "C:/esp32/esp32_sdk/esp-idf/components/esptool_py/esptool/esptool.py", line 2060, in main
operation_func(esp, args)
File "C:/esp32/esp32_sdk/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
Any hint why I got those errors or what should I do to got it right?
Salve,
Dan
Load_ram esptool
Re: Load_ram esptool
How does that speed up things, especially at 115200? You have a firmware linked and able to run from iram only?
Re: Load_ram esptool
Maybe I had to ask the question in a different way: is "load_ram" documented somewhere? How is supposed to work?
Actually what I try to achieve is the possibility to write small snippets of code, to download code only in RAM, avoid to write to flash.
Actually what I try to achieve is the possibility to write small snippets of code, to download code only in RAM, avoid to write to flash.
Re: Load_ram esptool
From what I understand, this esptool subcommand takes a file and copies the content of that file into RAM and then executes ... quite where execution is passed ... I don't know. I am however interested in your end goal. What do you see as the value of loading snippets into RAM for execution? Do you have a special project in mind or is the goal to reduce the edit/compile/flash/run cycle? ... or something else.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32
-
- Posts: 4
- Joined: Fri Oct 13, 2017 5:44 am
Re: Load_ram esptool
So it is possible to execute code from ram?
-
- Posts: 9724
- Joined: Thu Nov 26, 2015 4:08 am
Re: Load_ram esptool
Yes, it is; as long as you put your code in IRAM instead of DRAM, there's no problem executing it. See for instance the IRAM_ATTR function attribute in esp-idf.
Who is online
Users browsing this forum: No registered users and 173 guests