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.

CC2640R2F: Code hangs unexpectedly when using UART serial

Part Number: CC2640R2F

Hi,

Im working on onchip OAD code and using CCS, SDK 1_50_00_58.

My code hangs unexpectedly when using UART serial. Im using Display_printf statements. There are a lot of Display_printf statements in my code for debugging purposes. Sometimes the code hangs at particular line and when that is removed it works fine. Why is this happening?

Thanks,

radha.

 

  • Hi Radha,

    There are a few reasons why this might be happening. There could be a timing conflict with the thread resources but it could also depend on where you are calling Display_printf. Are you trying to print anything in a callback function or interrupt? Display_printf should only be called in a task.
  • Hi Jessica,

    Thanks a lot for you reply.

    I think there must have been timing conflicts with the thread resources since I'm not printing anything in a callback function or interrupt and I'm using Display_printf in task context only.

    Thanks,

    radha.