This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to monitor 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

Parents
  • 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?

  • You have to give us some more details on your setup, code example you use, have you modified anything? What are you connecting it to? Does the firmware work for a while or are you getting error right away? It's impossible to guess what you are doing, so please try to describe what you are doing and the behavior of the code example you are using. Have you tried debugging the code? Are you getting any error code back in the application?

Reply
  • You have to give us some more details on your setup, code example you use, have you modified anything? What are you connecting it to? Does the firmware work for a while or are you getting error right away? It's impossible to guess what you are doing, so please try to describe what you are doing and the behavior of the code example you are using. Have you tried debugging the code? Are you getting any error code back in the application?

Children
No Data
Related