Chat freely about anything...

User avatar
By murraylang
#62479 Hi all,

I have returned to the ESP8266 after a couple of years of distractions, and have been trying to update my ESP-12 module, bought back then, with the latest version of my code. I am using a very recent version of esp-open-sdk and the bundled NONOS SDK (after the RTOS version proved too bloated with my dependencies). I use CMake and my IDE is CLion.

Regardless of what settings and addresses I try, when the module is restarted after flashing, it always spits out a stream of garbage at the terminal, and the blue LED flashes constantly. It looks like the module is oscillating through an exception/reboot cycle. To prove that the module was OK, I fired up my older machine with esp_iot_sdk_v1.2.0 and was able to flash and run my old code without problems.

At one point I tried copying eagle.app.v6.ld and eagle.rom.addr.v6.ld from the old SDK to use with the new SDK, but found that the old eagle.rom.addr.v6.ld was not "PROVIDE"ing a function required by the newer libraries. This looks to me like there are incompatibilities between the ROM in older and newer modules, and that therefore the older SDK is required to build for the older modules.

Does this fit with the experience of others, or am I just not tweaking the build properly with the new SDK.

Murray
User avatar
By schufti
#62485 Hi,

if you look at the releasenotes for the recent version:
https://espressif.com/en/support/downlo ... d%5B%5D=14

Code: Select allESP8266_NONOS_SDK_V2.0.0_16_08_10 Release Notes
1. Changed the license of some source files to espressif MIT.
2. Updated libphy.a to 1055, fixed an issue of large current in Light-sleep.
3. Updated AT+ to 1.3.0:
   3.1 Added Light-sleep wakeup command, AT+WAKEUPGPIO;
   3.2 Fixed abnormal AT+CWDHCPS IP allocation;
   3.3 Added at_sdio demo under example directory.
4. Fixed probable system default when calling cur and def interfaces.
5. Fixed the issue of high current in Deep-sleep mode without disabling SPI first.
6. Fixed an issue where the SDK would crash when switching from AP to Station mode by calling wifi_set_phy_mode.
7. Updated secondary boot loader to v1.6:
   7.1 Supports AT + based on SDIO;
   7.2 Supports entering testing mode through GPIO.
8. Added support for MXIC Flash QIO mode.
9. Fixed exception caused during TCP handshake and retransmission.
10. Fixed issues in ESP-NOW.
11. Added ESP-PAIR (Simple-Pair) feature, for APIs please refer to ESP8266 SDK API Guide.
12. wpa2-enterprise time function derivation and time check disable can be set by users.
13. Support for PEAP/TTLS in wpa2-enterprise, for APIs please refer to ESP8266 SDK API Guide.
14. Added mqtt demos under examples directory.
15. Other issue fixes.
16. Resolved an issue that RF_Init_data sector may be broken in stress test. Provided a function user_rf_cal_sector_set which has to be added in application by software developer. More details about user_rf_cal_sector_set refer to documentation "2C-ESP8266__SDK__API Guide". (Resolved in ESP8266_NONOS_SDK_V1.5.4.1)
17. Fix a potential risk that will cause rf not work after external reset. (Resolved in ESP8266_NONOS_SDK_V1.5.4.1)
18. Add SDIO AT support. (Resolved in ESP8266_NONOS_SDK_V1.5.4.1)
19. Fix a potential bug in espconn. (Resolved in ESP8266_NONOS_SDK_V1.5.4.1)
_________________________________________________________________________________________________________________________________________________________________________________________________________

ESP8266_NONOS_SDK Notes:

1. esp_init_data.bin has to be downloaded into flash at least once.

2. Download blank.bin to initialize the sector stored RF_CAL parameter (set by user_rf_cal_sector_set), and download esp_init_data.bin into flash, when the system needs to be initialized, or RF needs to be calibrated again.


you'll find hints about the missing function "user_rf_cal_sector_set" and the new "esp_init_data.bin" binary blob (default settings) that you are probably missing....
User avatar
By piersfinlayson
#62486
schufti wrote:Hi,

if you look at the releasenotes for the recent version:
https://espressif.com/en/support/downlo ... d%5B%5D=14

Code: Select allESP8266_NONOS_SDK_V2.0.0_16_08_10 Release Notes
1. Changed the license of some source files to espressif MIT.
2. Updated libphy.a to 1055, fixed an issue of large current in Light-sleep.
3. Updated AT+ to 1.3.0:
   3.1 Added Light-sleep wakeup command, AT+WAKEUPGPIO;
   3.2 Fixed abnormal AT+CWDHCPS IP allocation;
   3.3 Added at_sdio demo under example directory.
4. Fixed probable system default when calling cur and def interfaces.
5. Fixed the issue of high current in Deep-sleep mode without disabling SPI first.
6. Fixed an issue where the SDK would crash when switching from AP to Station mode by calling wifi_set_phy_mode.
7. Updated secondary boot loader to v1.6:
   7.1 Supports AT + based on SDIO;
   7.2 Supports entering testing mode through GPIO.
8. Added support for MXIC Flash QIO mode.
9. Fixed exception caused during TCP handshake and retransmission.
10. Fixed issues in ESP-NOW.
11. Added ESP-PAIR (Simple-Pair) feature, for APIs please refer to ESP8266 SDK API Guide.
12. wpa2-enterprise time function derivation and time check disable can be set by users.
13. Support for PEAP/TTLS in wpa2-enterprise, for APIs please refer to ESP8266 SDK API Guide.
14. Added mqtt demos under examples directory.
15. Other issue fixes.
16. Resolved an issue that RF_Init_data sector may be broken in stress test. Provided a function user_rf_cal_sector_set which has to be added in application by software developer. More details about user_rf_cal_sector_set refer to documentation "2C-ESP8266__SDK__API Guide". (Resolved in ESP8266_NONOS_SDK_V1.5.4.1)
17. Fix a potential risk that will cause rf not work after external reset. (Resolved in ESP8266_NONOS_SDK_V1.5.4.1)
18. Add SDIO AT support. (Resolved in ESP8266_NONOS_SDK_V1.5.4.1)
19. Fix a potential bug in espconn. (Resolved in ESP8266_NONOS_SDK_V1.5.4.1)
_________________________________________________________________________________________________________________________________________________________________________________________________________

ESP8266_NONOS_SDK Notes:

1. esp_init_data.bin has to be downloaded into flash at least once.

2. Download blank.bin to initialize the sector stored RF_CAL parameter (set by user_rf_cal_sector_set), and download esp_init_data.bin into flash, when the system needs to be initialized, or RF needs to be calibrated again.


you'll find hints about the missing function "user_rf_cal_sector_set" and the new "esp_init_data.bin" binary blob (default settings) that you are probably missing....


+1.

I found the same problem after moving to nonOS SDK 2.0. Flashing esp_init_data.bin fixed it.