ESP8266 Developer Zone The Official ESP8266 Forum 2021-06-12T12:49:17+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=75129 2021-06-12T12:49:17+08:00 2021-06-12T12:49:17+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75129&p=99991#p99991 <![CDATA[Re: How to load ELF image build by Arduino using Non-OS SDK bootloader]]> Thank!

Statistics: Posted by talleychan — Sat Jun 12, 2021 12:49 pm


]]>
2021-06-03T19:39:14+08:00 2021-06-03T19:39:14+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75129&p=99950#p99950 <![CDATA[Re: How to load ELF image build by Arduino using Non-OS SDK bootloader]]> Statistics: Posted by gailu — Thu Jun 03, 2021 7:39 pm


]]>
2021-06-03T11:36:02+08:00 2021-06-03T11:36:02+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75129&p=99944#p99944 <![CDATA[Re: How to load ELF image build by Arduino using Non-OS SDK bootloader]]> https://github.com/espressif/ESP8266_NO ... r/Makefile

Statistics: Posted by Her Mary — Thu Jun 03, 2021 11:36 am


]]>
2021-06-02T19:54:02+08:00 2021-06-02T19:54:02+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75129&p=99940#p99940 <![CDATA[Re: How to load ELF image build by Arduino using Non-OS SDK bootloader]]>
Any idea why standard bootloader provided in SDK can not boot an elf file converted to bin file with the standard nonos sdk procedure?

Where is the limitation?

Statistics: Posted by gailu — Wed Jun 02, 2021 7:54 pm


]]>
2021-06-01T22:01:07+08:00 2021-06-01T22:01:07+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75129&p=99939#p99939 <![CDATA[Re: How to load ELF image build by Arduino using Non-OS SDK bootloader]]>
from

Code:

xtensa-lx106-elf-objcopy.exe --only-section .text -O binary hello.ino.elf eagle.app.v6.text.bin

to

Code:

xtensa-lx106-elf-objcopy.exe --only-section .text* -O binary hello.ino.elf eagle.app.v6.text.bin


But still no success. From Theoretical point of view it should work but I believe something else is also missing.

Any pointer will help to get it working

Statistics: Posted by gailu — Tue Jun 01, 2021 10:01 pm


]]>
2021-06-01T21:26:03+08:00 2021-06-01T21:26:03+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75129&p=99938#p99938 <![CDATA[Re: How to load ELF image build by Arduino using Non-OS SDK bootloader]]>
Do I need to do objcopy for .text1 as I am doing for .text segment? If Yes, How to I use it in gen_appbin.py, does that script need to be updated?

Statistics: Posted by gailu — Tue Jun 01, 2021 9:26 pm


]]>
2021-06-01T14:07:26+08:00 2021-06-01T14:07:26+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75129&p=99934#p99934 <![CDATA[How to load ELF image build by Arduino using Non-OS SDK bootloader]]>
I have a requirement where I need to use elf image built using Arduino IDE but with boot_v1.6.bin provided in the NonOS SDK. I performed following steps

Background:
1. Arduino builds 2 elf files (sketch elf file and eboot elf file) then uses elf2bin.py (https://github.com/esp8266/Arduino/blob ... elf2bin.py) to stitch single binary that can be flashed on address 0x0. As we want to use SDK boot loader so we skipped eboot.elf file. and used only sketch elf file to follow NONOS SDK process to create a bin file.

My Sketch Elf File Name: hello.ino.elf

Step 1: Run objcopy command to generate following files as per Make file rules

Code:

xtensa-lx106-elf-objcopy.exe --only-section .text -O binary hello.ino.elf eagle.app.v6.text.bin
xtensa-lx106-elf-objcopy.exe --only-section .data -O binary hello.ino.elf eagle.app.v6.data.bin
xtensa-lx106-elf-objcopy.exe --only-section .rodata -O binary hello.ino.elf eagle.app.v6.rodata.bin
xtensa-lx106-elf-objcopy.exe --only-section .irom0.text -O binary hello.ino.elf eagle.app.v6.irom0text.bin


Step2: Run gen_appbin.py to create binary file eagle.app.flash.bin

Code:

tools\gen_appbin.py hello.ino.elf 1 2 0 4 1


Step3: Flashed following binaries on ESP12 F using ESP Download Tool

Code:

boot_v1.6.bin:             0x00000;
eagle.app.flash.bin:       0x01000;
esp_init_data_default.bin: 0x3FC000;
blank.bin:                 0x3FE000;


Run the board. But it did not work (no output on console except for some junk). As the sketch is nothing but a C++ code, I believe it should have worked. Can you please guide me.

I am attaching source File, elf file and linker script used to create elf file for sketch.
files.zip

Statistics: Posted by gailu — Tue Jun 01, 2021 2:07 pm


]]>