Dear Members,
How can I find the cause of
<error> app: Fatal error ?
I can't see an error code ?
Is it possible hardware error because voltage surge ? Can capacitor rectify it ?
Thanks
Dear Members,
How can I find the cause of
<error> app: Fatal error ?
I can't see an error code ?
Is it possible hardware error because voltage surge ? Can capacitor rectify it ?
Thanks
I got this error :
<error> app: ERROR 0 [NRF_SUCCESS] at ..\..\..\..\..\..\..\..\components\librari
\libuarte\nrf_libuarte_async.c:230
at: 0x000390A3
rror> app: End of error report
How can I rectify it ? thanks
Hi,
Looking at the code line 230 has the APP_ERROR_CHECK_BOOL you see in this snippet:
case NRF_LIBUARTE_DRV_EVT_RX_BUF_REQ:
{
if (p_libuarte->p_ctrl_blk->rx_halted)
{
break;
}
if (rx_buffer_schedule(p_libuarte) == false)
{
if (p_libuarte->p_ctrl_blk->hwfc)
{
p_libuarte->p_ctrl_blk->rx_halted = true;
}
else
{
NRF_LOG_ERROR("(evt) Failed to allocate buffer for RX.");
APP_ERROR_CHECK_BOOL(false);
}
}
break;
So it seems like you are not handling incoming data fast enough in your application. I suggest you either try to handle incoming data faster, or change the buffer sizes which you configure where you use NRF_CLI_LIBUARTE_DEF().
Hi,
Looking at the code line 230 has the APP_ERROR_CHECK_BOOL you see in this snippet:
case NRF_LIBUARTE_DRV_EVT_RX_BUF_REQ:
{
if (p_libuarte->p_ctrl_blk->rx_halted)
{
break;
}
if (rx_buffer_schedule(p_libuarte) == false)
{
if (p_libuarte->p_ctrl_blk->hwfc)
{
p_libuarte->p_ctrl_blk->rx_halted = true;
}
else
{
NRF_LOG_ERROR("(evt) Failed to allocate buffer for RX.");
APP_ERROR_CHECK_BOOL(false);
}
}
break;
So it seems like you are not handling incoming data fast enough in your application. I suggest you either try to handle incoming data faster, or change the buffer sizes which you configure where you use NRF_CLI_LIBUARTE_DEF().
NRF_CLI_LIBUARTE_DEF().
I have uint8_t rxBuffer[256];
for libuarte GPS , I try reducing the size but still got the same error, any ideas ?,
How can I handle incoming data faster ? it's connected at 9600 baud, is it too slow ? thanks
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,
.parity = NRF_UARTE_PARITY_EXCLUDED,
.hwfc = NRF_UARTE_HWFC_DISABLED,
.timeout_us = 1000,
.int_prio = APP_IRQ_PRIORITY_LOW
Hi,
I do not see that the baud rate is relevant here. Did you try to increase the buffer? There is also a thread here, which may be relevant.
do you think 1024 for RxBuffer ?
I am not sure, that depends on the root cause of this issue. Which SDK version are you using?