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

User avatar
By scargill
#3487 Espressif released a CYGWIN setup for coding in Windows - instructions here.

http://blog.electrodragon.com/esp8266-s ... ows-setup/

I followed this to the letter - it makes the IOT_DEMO....

This was the output - that first bit was supposed to take "3 to 5 minutes" - it took seconds.

$ make
make[1]: Entering directory '/SDK/app'
make[2]: Entering directory '/SDK/app/user'
make[2]: Leaving directory '/SDK/app/user'
make[2]: Entering directory '/SDK/app/driver'
make[2]: Leaving directory '/SDK/app/driver'
make[2]: Entering directory '/SDK/app/lwip'
make[3]: Entering directory '/SDK/app/lwip/api'
make[3]: Leaving directory '/SDK/app/lwip/api'
make[3]: Entering directory '/SDK/app/lwip/app'
make[3]: Leaving directory '/SDK/app/lwip/app'
make[3]: Entering directory '/SDK/app/lwip/core'
make[4]: Entering directory '/SDK/app/lwip/core/ipv4'
make[4]: Leaving directory '/SDK/app/lwip/core/ipv4'
make[3]: Leaving directory '/SDK/app/lwip/core'
make[3]: Entering directory '/SDK/app/lwip/netif'
make[3]: Leaving directory '/SDK/app/lwip/netif'
make[2]: Leaving directory '/SDK/app/lwip'
make[2]: Entering directory '/SDK/app/json'
make[2]: Leaving directory '/SDK/app/json'
make[2]: Entering directory '/SDK/app/ssl'
make[3]: Entering directory '/SDK/app/ssl/app'
make[3]: Leaving directory '/SDK/app/ssl/app'
make[3]: Entering directory '/SDK/app/ssl/crypto'
make[3]: Leaving directory '/SDK/app/ssl/crypto'
make[3]: Entering directory '/SDK/app/ssl/ssl'
make[3]: Leaving directory '/SDK/app/ssl/ssl'
make[2]: Leaving directory '/SDK/app/ssl'
make[2]: Entering directory '/SDK/app/upgrade'
make[2]: Leaving directory '/SDK/app/upgrade'
make[1]: Leaving directory '/SDK/app'



Then they ask you to run MAKE COMPOSE – and that generates THIS…



###############################################
### electrodragon ###
### http://www.electrodragon.com ###
###############################################

generate bin

/bin/sh /SDK/app/gen_misc.sh
make[1]: Entering directory '/SDK/app'
make[2]: Entering directory '/SDK/app/user'
make[2]: Leaving directory '/SDK/app/user'
make[2]: Entering directory '/SDK/app/driver'
make[2]: Leaving directory '/SDK/app/driver'
make[2]: Entering directory '/SDK/app/lwip'
make[3]: Entering directory '/SDK/app/lwip/api'
make[3]: Leaving directory '/SDK/app/lwip/api'
make[3]: Entering directory '/SDK/app/lwip/app'
make[3]: Leaving directory '/SDK/app/lwip/app'
make[3]: Entering directory '/SDK/app/lwip/core'
make[4]: Entering directory '/SDK/app/lwip/core/ipv4'
make[4]: Leaving directory '/SDK/app/lwip/core/ipv4'
make[3]: Leaving directory '/SDK/app/lwip/core'
make[3]: Entering directory '/SDK/app/lwip/netif'
make[3]: Leaving directory '/SDK/app/lwip/netif'
make[2]: Leaving directory '/SDK/app/lwip'
make[2]: Entering directory '/SDK/app/json'
make[2]: Leaving directory '/SDK/app/json'
make[2]: Entering directory '/SDK/app/ssl'
make[3]: Entering directory '/SDK/app/ssl/app'
make[3]: Leaving directory '/SDK/app/ssl/app'
make[3]: Entering directory '/SDK/app/ssl/crypto'
make[3]: Leaving directory '/SDK/app/ssl/crypto'
make[3]: Entering directory '/SDK/app/ssl/ssl'
make[3]: Leaving directory '/SDK/app/ssl/ssl'
make[2]: Leaving directory '/SDK/app/ssl'
make[2]: Entering directory '/SDK/app/upgrade'
make[2]: Leaving directory '/SDK/app/upgrade'
make[1]: Leaving directory '/SDK/app'
40100004
3ffe8000
3ffe8da0
genflashbinv6 eagle.app.v6.text.bin 40100004 eagle.app.v6.data.bin 3ffe8000 ea
e.app.v6.rodata.bin 3ffe8da0
text start_addr 0x40100004
data start_addr 0x3ffe8000
rodata start_addr 0x3ffe8da0
ERROR: text seg len is 5fa2 is NOT 4-byte aligned!! Need to pad
text size5fa4
data sized9c
rodata size199c
header size is 8 block header size 18 total size is 86fd pad is 0x3 blocks ♥
chksum text ab
chksum data b5
chksum all d3
text load_addr 0x40100000 len 0x5fa4
data load_addr 0x3ffe8000 len 0xd9c
rodata load_addr 0x3ffe8da0 len 0x199c
mv eagle.app.flash.bin eagle.app.v6.flash.bin
/bin/sh /SDK/bin/compose.sh
###############################################
### Electrodragon ###
### http://www.Electrodragon.com ###
###############################################

finish compile, please flash to test
22:14:10: Debug: src/helpers.cpp(140): 'CreateActCtx' failed with error 0x0000
7b (the filename, directory name, or volume label syntax is incorrect.).
init finished
_COM: 6
ESP_ROM_BAUD : 115200


As you can see there are errors… but BIN files ARE made.

The FLASH DOWNLOAD program pops up and you blow the ROM (2 bin files). You can’t see any output on the serial because it is coming out at some crazy baud rate like 75K… if you look for the access point on your phone – you get an access point with the STRANGEST characters in it – and there aren’t any notes I can see to tell you what the password is – and if you look in the files- there is what looks like an encrypted password.

Does anyone know how to get past this?

ie.
Make the compile work without errors
Make the serial debug use a normal speed like 115k or 9600 or something
Make a normal looking Access point name
Define a simple password

Any help would be appreciated - I've spent the night on this and it's driving me mad.
Last edited by RichardS on Fri Nov 28, 2014 5:27 pm, edited 1 time in total. Reason: made a freindlier subject line