Hello there;
My setup:
NRF52832
SDK 15.3
I'm facing some problems with FDS when i use it with BLE activated.
When i read or write on FDS using fds_record_open or fds_record_update with BLE activated i get fatal erros.
But if i dont initialize the BLE the FDS operates normal without any errors.
Some one have any advice about it? I just need to read the FDS on the initialization of the device and write in flash one or two times while the application runs.
Debug:
Fullscreen
1
2
3
4
<info> app: Fast advertising.
<info> app: Event: FDS_EVT_INIT received (FDS_SUCCESS)
(After FDS INIT i try to read the FDS)
<error> app: Fatal error
My BLE Init:
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
void ble_init(void) {
bool erase_bonds;
ble_conn.sts.disconnected = 1;
log_init();
timers_init();
power_management_init();
ble_stack_init();
gap_params_init();
gatt_init();
services_init();
advertising_init();
conn_params_init();
peer_manager_init();
NRF_LOG_INFO("Modelo esta sendo executado.");
application_timers_start();
advertising_start(erase_bonds);
FDS init:
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
void init_flash_fds(void) {
ret_code_t rc;
// Registro p/ receber evento de quanto a inicialização está completa
(void) fds_register(fds_evt_handler);
// Inicia flash FDS
rc = fds_init();
APP_ERROR_CHECK(rc);
// Aguarda o FDS inicializar
wait_for_fds_ready();
// Analisa estado do FDS
fds_stat_t stat = {0};
rc = fds_stat(&stat);
}