Okay. The following is what is included in the
Zip file.
- My 'xtensa-lx106-elf-libs' folder including sdkconfig copied from the hello_world example
- A 'hello' project folder built with Espressif's SDK (including, FWIW, the bootloader and partition images)
- A 'hello2' project folder built with your SDK (which, unfortunately, hangs at the very same spot after loading the app image)
Since, when you previously requested an ELF file with debug info, you specified optimization level 1, I changed your code-quoted compiler command from "-O3" to "-O1" figuring it was merely an oversight.
Notes on changes to sdkconfig from default:
Bootloader config -> Bootloader log verbosity (Verbose)
Serial flasher config -> Flash size (4 MB)
I left the flash and monitor baud rates at default (115200 & 74880, respectively).
hello build:
#hello> ~/eDevel/Embedded/esp/8266/fpc/compiler/ppcrossxtensa -Fu~/eDevel/Embedded/esp/8266/fpc/rtl/units/xtensa-freertos/ -Tfreertos -XPxtensa-lx106-elf- -O1 -gw3 -Wpesp8266 -WP3.4 -Fl~/eDevel/Embedded/esp/xtensa-lx106-elf-libs -Fl$IDF_PATH/components/esp8266/lib -Fl~/eDevel/Embedded/esp/xtensa-lx106-elf/xtensa-lx106-elf/lib hello
Free Pascal Compiler version 3.3.1 [2022/01/13] for xtensa
Copyright (c) 1993-2021 by Florian Klaempfl and others
Target OS: FreeRTOS
Compiling hello.pas
Assembling hello
Linking hello
esptool.py v2.4.0
5 lines compiled, 2.7 sec, 105266 bytes code, 68 bytes data
hello2 build:
#hello2> ~/eDevel/Embedded/esp/8266/fpc/compiler/ppcrossxtensa -Fu~/eDevel/Embedded/esp/8266/fpc/rtl/units/xtensa-freertos/ -Tfreertos -XPxtensa-lx106-elf- -O1 -Wpesp8266 -WP3.4 -Fl~/eDevel/Embedded/esp/fpc-esp8266-idf-3.4/libs -Fl~/eDevel/Embedded/esp/xtensa-lx106-elf/xtensa-lx106-elf/lib -gw3 hello
Free Pascal Compiler version 3.3.1 [2022/01/13] for xtensa
Copyright (c) 1993-2021 by Florian Klaempfl and others
Target OS: FreeRTOS
Compiling hello.pas
Assembling hello
Linking hello
esptool.py v2.4.0
5 lines compiled, 2.0 sec, 111562 bytes code, 68 bytes data
(I had to remove the framework option to get it to link; otherwise it complained about not finding linker script file esp8266.peripherals.ld)
My compiler and tools versions:
#> 8266/fpc/compiler/ppcrossxtensa -iWD
3.3.1 2022/01/13
#> xtensa-lx106-elf/bin/xtensa-lx106-elf-ld -v
GNU ld (crosstool-NG esp-2020r3-49-gd5524c1) 2.31.1
Edit: I forgot to mention that my sdkconfig has the USB path set to ttyUSB1.