-->
Page 1 of 1

system_param_save_with_protect - corruption? @ 0xFD

PostPosted: Wed Mar 08, 2017 1:55 pm
by DavidDPD
I'm getting data corruption on reboot in the user data sector which is suppose to be - to my understanding in the 3 blocks - FD FE FF, where the SDKs parameter config data is at 0xFC. My assumption has been that the config data by the SDK is overwriting this piece. This might be a change in 1.5 or 2.0 of the SDK. (ESP-12e w/ I think 32Mbit flash ... so using rBOOT 1.4.2 with two ~512k ROM segments )

The code frag :
Code: Select all#define PRIV_PARAM_START_SEC   0xFC
#define ESP_PARAM_START_SEC      0xFD

system_param_save_with_protect (ESP_PARAM_START_SEC, &(flashConfig[0]), 4096)


I've moved my configuration data to 0xF8 ... but would like to understand what is going on here.