Hi
I am currently developing a demo application and started with the ble_app_template project from the ble_peripheral_folder (s140 softdevice, sdk 16.0). I copied it to another folder and modified the paths in the Segger Embedded Studio project file to match the correct paths. I also modified the path to the S140 softdevice file. The board is a custom board which is roughly (very roughly) derived from the 52840 DK. In fact we're using a Nina B302 module (which contains the nrf52840).
This is the code for main so far:
int main(void) { bool erase_bonds; // Initialize. log_init(); timers_init(); buttons_leds_init(&erase_bonds); power_management_init(); ble_stack_init(); gap_params_init(); gatt_init(); advertising_init(); services_init(); conn_params_init(); peer_manager_init(); // Start execution. NRF_LOG_INFO("Template example started."); application_timers_start(); //advertising_start(erase_bonds); // enable 3V1_SW nrf_gpio_cfg_output(10); // Enter main loop. for (;;) { idle_state_handle(); } }
My test project works as long as I comment out the line "advertising_start". As soon as that line is included (it returns 0x0, so no error), I won't get to the the next line (nrf_gpio_cfg_output) but it seems that the device will hang a while and then go to app_error_fault_handler (id = 1).
I am not quite sure if there is an issue with the softdevice because I copied the files somewhere else but I can hardly think that's the issue. Any ideas how I could debug this issue?