Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By hobby16
#54810 I've installed Cherts' DevKit for Windows v2.1.0. DOS command make works great immediatly ((I don't want Eclipse) contrary to many other installs I've tried unsucessfully on my Win7 32bits. Great job Cherts, thank you !

All the projects of the "examples" folder compile well into .bin (1wire_ds18b20, blinky, at, dht22_thingspeak...) except nodemcu-firmware.
With nodemcu-firmware, compile and link are ok (ouput file eagle.app.v6.out is produced) but when generating .bin,I get this error :
Code: Select all"LoadLibrary(pythondll) failedLe module spÚcifiÚ est introuvable."

Solution : path error in file "examples/ESP8266/nodemcu-firmware/Makefile" must be corrected
Code: Select all=> change
ESPTOOL      ?= ../tools/esptool.exe
to
$(SDK_TOOLS)/esptool.exe


Problem is the nodemcu-firmware of the DevKit's example is too old (V0.9).
Anyone know how to compile the up-to-date version ( nodemcu-firmware V1.5.4.1) ? I've downloaded it and try to compile it but get plenty of errors. I don't know enough make to change Makefile.
User avatar
By hobby16
#54829 Maybe a clue to the problem of compiled firmware not working anymore and sending out error messages at 74880bds (garbage with another comspeed) instead of jumping to main() :
1) project hello_world compiles and works fine ("hello world" sent every 1s)
2) project hello_world_cpp compiles but sends garbage like above

Does the problem comes from some options for gcc when upgrading Cherts' toolchain to V2.10 ?
User avatar
By hobby16
#54858 This is the error message sent by nodemcu-firmware
- nodemcu-firmware-master V 1.5.1 downloaded by git
- compiled with Cherts' toolchain version 2.1.0
- fw uploaded on ESP-1 (512kB flash) and ESP-12E (4MB flash) at 74880bds

Code: Select allf1, epc2=0x00000000, epc3=0x00000000, excvaddr=0x402601c8, depc=0x00000000
Fatal exception (3):
epc1=0x4023eaf1, epc2=0x00000000, epc3=0x00000000, excvaddr=0x402601c8, depc=0x00000000
Fatal exception (3):
... (second "Fatal exception (3) repeated continuously


nodemcu-firmware from the Cherts' examples folder (V 0.9.6) compiled in the same conditions works fine on ESP-1 and ESP-12E. Funny, it works even when compiling & flashing ESP-12E (4MB) with the exact same parameters than ESP-01 (512Kb), with nodemcu saying something like "adjust memory" at the first boot and then booting without complaint every time.
But no such luck with the latest nodemcu-firmware from web repository, so I am pretty sure the problem does not come from the flashing and default binaries.
User avatar
By NDE
#55050 hi just upgraded to eclipse neon and nothing will build.

i now get error like the following errors any ideas as to what is causing this.

Code: Select all22:43:20 **** Build of configuration Release for project mqtt_sensor_temperature ****
mingw32-make.exe -f C:/Users/neil/Documents/Software/esp8266/wokspace/mqtt_sensor_temperature/Makefile all
CC driver/uart.c
CC driver/ds18b20.c
CC user/user_main.c
CC mqtt/proto.c
CC mqtt/utils.c
CC mqtt/queue.c
CC mqtt/mqtt_msg.c
CC mqtt/ringbuf.c
CC mqtt/mqtt.c
CC modules/wifi.c
CC modules/config.c
AR build/app_app.a
LD build/app.out
------------------------------------------------------------------------------
Section info:

build/app.out:     file format elf32-xtensa-le

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .data         000007e8  3ffe8000  3ffe8000  000000e0  2**4
                  CONTENTS, ALLOC, LOAD, DATA
  1 .rodata       00001618  3ffe87f0  3ffe87f0  000008d0  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  2 .bss          00006718  3ffe9e08  3ffe9e08  00001ee8  2**4
                  ALLOC
  3 .irom0.text   0003e5fb  40210000  40210000  00009160  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  4 .text         00007270  40100000  40100000  00001ee8  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
------------------------------------------------------------------------------
C:/Users/neil/Documents/Software/esp8266/wokspace/mqtt_sensor_temperature/Makefile:187: recipe for target 'build/app.out' failed
process_begin: CreateProcess(NULL, c:/Espressif/utils/esptool.exe elf2image build/app.out -ofirmware/ -ff 40m -fm qio -fs 4m, ...) failed.
make (e=2): The system cannot find the file specified.

mingw32-make.exe: *** [build/app.out] Error 2

22:43:26 Build Finished (took 5s.494ms)