Dear Members,
I got :
nfo> app: Initializing disk 0 (SDC)...
rror> app: ERROR 1 [NRF_ERROR_SVC_HANDLER_MISSING] at :0
at: 0x00000000
rror> app: End of error report
Happens when I want to write to SDcard at HRM event :
void ant_hrm_page_0_decode(uint8_t const * p_page_buffer,
ant_hrm_page0_data_t * p_page_data)
{...
//*********************log heart rate to SDCard 29 November 2021***************
log_hrm(p_page_data->computed_heart_rate);
....
}
.....
int32_t log_hrm(int32_t raw_hrm_sd)
{
//Fatfs object
FATFS FatFs_GPS;
//File object
FIL fil_GPS;
BYTE line_GPS[1024];
FRESULT res_GPS;
char str_HRM[32];
snprintf(str_HRM,sizeof(str_HRM),"%.3f",raw_hrm_sd); //return to main to process
//SD_Init();//initialized and test write the disk.
f_mount(&FatFs_GPS, "", 1); //1=mount now
res_GPS= open_append_GPS(&fil_GPS, "HRMLOG.txt");
if (res_GPS != FR_OK) printf("APPEND GPS FILE FAILED!\r\n");
NRF_LOG_INFO("Error code: %d\r\n", res_GPS);
/* Append a line */
f_printf(&fil_GPS, "HRM log : %s \r\n",str_HRM);
/* Close the file */
f_close(&fil_GPS);
NRF_LOG_INFO("Rixtronix LAB HRM log DONE..\r\n");
}
}
How can I fix it ? thanks