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

User avatar
By mcsa
#2031
mobyfab wrote:Did you guys try my toolchain as well?

It's not based on cygwin so it should be easier and a lot faster.


how to use you windows toolchain?
I extract it, add examples dir to it, run make and get the same error

Code: Select allCC driver/uart.c
...
xtensa-lx106-elf-gcc: error: spawn: No such file or directory
make: *** [build/driver/uart.o] Error 1
User avatar
By mobyfab
#2039 You obviously need to add the toolchain's bin dir to your path, or update the makefiles to specify it.

Also don't use the original examples Makefiles, they are retarded.
Here the Makefile for the AT example: https://gist.github.com/fpoussin/73e3bf45846bec1e5a08 (You need to put the sdk and toolchain in C:/Espressif, or update the makefile)

You can also try to compile esphttp, it should work fine with the correct path.

esptool will fail if not in your path (you can put it with gcc's bins to fix that)

Let me know how that works.
User avatar
By mcsa
#2042
mobyfab wrote:
Let me know how that works.


Thanks for replay.
What ver of SDK needed? I use SDK 0.9.2. I use makefile, that You provide and now received error
Code: Select allLD build/esp8266_at.out
build/esp8266_at_app.a(at_ipCmd.o): In function `at_tcpserver_discon_cb':
C:\esp8266\esp_iot_sdk_v0.9.2\examples\at/user/at_ipCmd.c:1157: undefined reference to `system_upgrade_start'
C:\esp8266\esp_iot_sdk_v0.9.2\examples\at/user/at_ipCmd.c:1171: undefined reference to `system_upgrade_start'
collect2.exe: error: ld returned 1 exit status
make: *** [build/esp8266_at.out] Error 1


PS YEESS. Its build with SDK 0.9.1. I will try in harware tomorrow.
update: Working in hardwere
What is esphttp?
Last edited by mcsa on Thu Oct 30, 2014 2:00 am, edited 2 times in total.