This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SIMPLELINK-CC13X0-SDK: Exception on sending data over uart



sometimes I get an exception from the Uart Driver while sending data over the uart. The exception is thrown when the first 3 bytes of a message have been sent. The Image below shows the moment when the exception is thrown. How can I find out what is causing this error?

  • It's not possible to know what would cause an exception based on the information provided. 

    How is it possible to recreate this error on our side? 

  • It's not possible to recreate this error from your side, because the problem occurs only in the context of the entire Project. Would it be possible to read out a specific register which gives a hint for the hard fault?

  • It looks the issue is related to UART. Have you tried to remove tasks to see if the issue is still present? 

    - If this is related to the driver it should be possible to recreate the issue just using the UART.

    - It could be an issue with memory. Typically it could be that the RAM you have allocated is too small (stack, variable etc), undefined pointer or similar. 

    If it consistently happens after 3 byte it should be possible to get the state of variable etc just before the line that crashes the code (causing the exception) and get a better insight in what is happening.  

  • Thanks for your hints. I'll check if I can reproduce this error on a much simpler code. But you can be right that this is a memory issue