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.

LAUNCHXL-CC2640R2: Calling Uart_read() inside Task causes unusual problems?

Part Number: LAUNCHXL-CC2640R2


Hi,

   I have modified simple_peripheral to do UART Echo using Events and it works. I transferred my UART Code to my product under development. The program running is based from simple_peripheral also. When I comment out Uart_read() inside the task, it works properly and it prints "UART Initialized" at Tera Term. However, if I call Uart_read() inside Task as shown below, it causes some unusual behaviors. I am only able to debug step at a certain point then it just runs unusually. But, if I pause the debugger it always goes to memory location 0x2a00 and checking memory view it is calling ICall_Init. It seems to be stuck at the for condition "i < MAX_NUM_ENTITIES". I increase the ICALL_MAX_NUM_ENTITIES =6 to 7 and 8. But still the same results. How do I debug this problem. I am not very knowledgeable with IAR Workbench.

- kel