Dear Members,
We tried reading file with nrf_fprintf()....
Code :
NRF_LOG_RAW_INFO("Entries count _sd: %u\r\n", entries_count); //printf("UART text \r\n"); NRF_LOG_INFO("Reading file \r \n"); f_open(&fil, "HRM.TXT", FA_READ); /* Read all lines and display it */ while (f_gets(line, sizeof line, &fil)) nrf_fprintf(line); /* Close the file */ NRF_LOG_INFO("Finished reading file.. \n \r\n"); f_close(&fil); }
Output in UART :
0:00:00.000,000] <info> app: USBD MSC example started. 0:00:00.000,000] <info> app: Initializing disk 0 (SDC)... 0:00:00.000,000] <info> app: sting directory _sd: / <DIR> SYSTEM~1 6716 NORDIC.TXT 29900 RIXTRO.TXT 305208 HRM.TXT 210693 SPD.TXT 120038 SPD_MPS.TXT 75344 POW.TXT 150265 DIS.TXT 102699 CAD.TXT 147407 TOR.TXT 1246035 GPS.TXT tries count _sd: 12 [00:00:00.000,000] <info> app: Reading file [00:00:00.000,000] <error> app: ASSERTION FAILED at ..\..\..\..\..\..\external\f intf\nrf_fprintf.c:67
Does anyone know on how to rectify it ?
Kind regards..