I am using latest (v 0.9) S130 and experiencing the following problem, the code below is located in the function which is called directly by the main():
uint32_t err_code;
ble_gap_adv_params_t adv_params;
memset(&adv_params, 0, sizeof(adv_params));
When the last line (memset) is being executed the application is entering main() again. I don't understand would could be wrong here since, as can be seen, I am using only local variables and doesn't seem like I should somehow be corrupting memory used for other purposes.
These are my project settings:
IROM1: 0x1D000 0x23000
IRAM1: 0x20002800 0x1800
Am I missing something obvious?