martin-ger / esp_mqtt

MQTT Broker/Bridge on the ESP8266
MIT License
295 stars 69 forks source link

error in make #9

Closed kim-rok closed 6 years ago

kim-rok commented 6 years ago

................ /home/kim/opt/esp-open-sdk/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.5/../../../../xtensa-lx106-elf/bin/ld: build/app.out section .text' will not fit in regioniram1_0_seg' collect2: error: ld returned 1 exit status Makefile:122: recipe for target 'build/app.out' failed make: *** [build/app.out] Error 1

I got a error with newly updated data during make. How can I fix it?

kim-rok commented 6 years ago

I figure it out. I got the error when the SSL option enabled. IF SSL is needed, what i have to do?

martin-ger commented 6 years ago

I think, the code will become to big, if you switch on all options - if you switch off SCRIPED (if you don't need it), it compiles. However, I did not make real tests with the SSL option enabled - it should be considered "experimnntal".

kim-rok commented 6 years ago

When using the precompiled firwmware, typing the script language is hard because of scrolling of screen with wifi reconnect(unadopted SSID name). How do you think about the precompiled firmware with wifi auto-connect option off. The user can activate the auto connection with script after flashing and reset.

martin-ger commented 6 years ago

Good idea! Added that. autoconnect 0 it factory default. "autoconnect 1" will be automatically set, when an ssid is defined with "set ssid". Thus, when you give an SSID and save and reset that, it will start trying to connect (and print to the console on failure).

martin-ger commented 6 years ago

Found the problem with the ".text' will not fit in regioniram1_0_seg'" - actually I had forgotten to declare a function "ICACHE_FLASH_ATTR" - this filled up the IRAM. Now it works...