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

User avatar
By jcmvbkbc
#1298
mamalala wrote:The 32 bytes for that function (including the 0-byte padding) are:

Code: Select all4000:4CD0 61 BD F0


The address is correct, so must be 0x60000200.
Which exception do you get when you access this range and what values do exccause and excvaddr have when you get it?
User avatar
By wizhippo
#1302
noelportugal wrote:Help anyone? I am able to compile the AT example but when I try to compile the IoT_Demo I get a lot of the following undefined references:

Code: Select allLD build/esp8266_at.out
build/esp8266_at_app.a(user_webserver.o): In function `webserver_recon':
user_webserver.c:(.irom0.text+0xc8): undefined reference to `jsonparse_strcmp_value'
...
build/esp8266_at_app.a(user_webserver.o): In function `wifi_softap_set':
/home/noel/esp_sources/IoT_Demo/user/user_webserver.c:486: undefined reference to `jsonparse_strcmp_value'
...
build/esp8266_at_app.a(user_webserver.o): In function `device_get':
/home/noel/esp_sources/IoT_Demo/user/user_webserver.c:49: undefined reference to `jsontree_path_name'
...


And a couple more refering to undefines refernce to `espconn_secure_*....'

So obviously I'm missing a reference to a json lib, but not quite sure where.

Thanks!


You need to add the libjson libupdate and libupdate_ssl to your makefile.

Code: Select all# libraries used in this project, mainly provided by the SDK
LIBS      = c gcc hal phy net80211 lwip wpa json ssl upgrade upgrade_ssl main
User avatar
By mamalala
#1303
jcmvbkbc wrote:
mamalala wrote:The 32 bytes for that function (including the 0-byte padding) are:

Code: Select all4000:4CD0 61 BD F0


The address is correct, so must be 0x60000200.
Which exception do you get when you access this range and what values do exccause and excvaddr have when you get it?


I will check that later. Only did a quick test of that last night, and each time i wrote something at the .02XX registers the module did a reset, while the .03XX registers work as expected.

Thanks,

Chris