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

User avatar
By gusa
#58094 Hello,

This is my first attempt to build something in an ESP module. I am using esp-open-sdk. I am using this tutorial: https://www.penninkhof.com/2015/03/esp8266-open-sdk/

Basically I am using https://github.com/pfalcon/esp-open-sdk to compile the basic blinking test code it includes. The main problem I have here is that when I type make it just generate blinky-0x00000.bin blinky-0x10000.bin files.

When I type make flash it tries to flash blinky-0x40000.bin that is not created. So it fails to flash.

Could you let me know what I am doing wrong?
User avatar
By algofoogle
#58448 I can confirm that the suggestion by davydnorris works for me, for the same problem as reported by gusa.

Here is my altered Makefile that illustrates this: blinky Makefile covering blinky-0x10000.bin instead of blinky-0x40000.bin

I'm not sure yet why there's a difference (or hence how to standardise this), but I suspect it's due to a different ESP8266 SDK version. Does anyone know?

NOTE ALSO: That my Makefile includes the "-lc" option to link the standard C library also (for memchr()). I haven't yet looked into the correct solution for this but I think someone's working on a patch around here...