Dear Members,
I run 3 devices,
GPS on libuarte1
LCD on SPI2
Sdcard on SPI 1,
I'm using ANT and softdevice 340,
When I run LCD and SDcard outside the main loop, it's working ok,
by the time it's inside the main loop, it crashes with libuarte1,
Code :
nrf_libuarte_async_config_t nrf_libuarte_async_config1 = {
.tx_pin = SER_APP_TX_PIN,
.rx_pin = SER_APP_RX_PIN,
.baudrate = NRF_UARTE_BAUDRATE_9600, //originally 28 Sept 2021
//.baudrate = NRF_UARTE_BAUDRATE_38400,
.parity = NRF_UARTE_PARITY_EXCLUDED,
.hwfc = NRF_UARTE_HWFC_DISABLED,
.timeout_us = 1000,
.int_prio = APP_IRQ_PRIORITY_LOW
};
err_code=nrf_libuarte_async_init(&libuarte1, &nrf_libuarte_async_config1, uart_event_handler1, (void *)&libuarte1);
/******************SDCARD Sequence****************/
NRF_SPI2->ENABLE = 0; //ILI9341 off
nrf_delay_ms(100);
NRF_SPI1->ENABLE = 1; //SDcard on
fatfs_example();
nrf_delay_ms(100);
/******************SDCARD Sequence****************/
printf("\rRixtronix LAB GPS Query.... \r\n");
nrf_delay_ms(2000);
GPSNeo_Process();
Debug :
nfo> app:
isting directory: /
9550 RIXTRO.TXT<info> app: Writing to file RIXTRO.TXT...
nfo> app: 50 bytes written.
nfo> app: LOOP Rixtronix LAB.
rror> app: SOFTDEVICE: ASSERTION FAILED
nfo> app: Support us by subscribing,thanks...
nfo> app: Initializing disk 0 (SDC)...
nfo> app: Capacity: 30436 MB
nfo> app: Mounting volume...
<error> app: ERROR 0 [NRF_SUCCESS] at ..\..\..\..\..\..\..\..\components\librari
\libuarte\nrf_libuarte_async.c:230
at: 0x0004877B
rror> app: End of error report
Any ideas on resolving it ? thanks