when I use app_uart.c code with FIFO, uart is ok, but I always encountered a out of memory ( always return NULL from malloc )
How to monitor / determine memory / RAM usage during running
when I use app_uart.c code with FIFO, uart is ok, but I always encountered a out of memory ( always return NULL from malloc )
How to monitor / determine memory / RAM usage during running
It sounds like the buffer on the UART might run full. Are you sure you are clearing/reading out the buffer between transmissions? Could there be a chance that you are missing some interrupts and not able to read all of them out?
Do you always get a NULL return or does it occur at random/set times into the run time?
I use the library supplied by nordic. that is app_uart_fifo.c
I use the library supplied by nordic. that is app_uart_fifo.c