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.

CC2640: UART init bug in CC2650EM_5XD/board.c?

Other Parts Discussed in Thread: SYSBIOS

I am using tirtos_simplelink_2_11_01_09 and 5x5 silicon. After I reconfigured to build for CC2650EM_5XD and run my firmware which uses UART. I found that is always hung somewhere before even the main() is called. When you pause the execution (I am using CCS), I see in stuck on ti_sysbios_hal_HwiProxy_Object__delete__S__mangled__().

After chasing down the code, I found this line in UART.c cause the problem:

...    
handle = (UART_Handle)&(UART_config[index]);
...

Further scratching the head, I found this abnormality in ~/CC2650EM_5XD/board.c:

...
#pragma DATA_SECTION(uartCC26XXObjects, ".const:uartCC26XXObjects")
...

comparing to ~/CC2650EM_7ID/board.c and ~/CC2650EM_4XS/board.c::

...
#pragma DATA_SECTION(uartCC26XXHWAttrs, ".const:uartCC26XXHWAttrs")
...

After I make the change in ~/CC2650EM_5XD/board.c to be the same as in ~/CC2650EM_4XS/board.c and ~/CC2650EM_7ID/board.c, the problem goes away.

Please confirm that it is a bug, and more particularly, the change mentioned in the correct fix.

../ming