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.

TIDA-010024: no debug output on LCD or UART following initial "TI Sensor" output

Part Number: TIDA-010024
Other Parts Discussed in Thread: BOOSTXL-SHARP128

Referring to the mesh reference design at 

http://www.ti.com/tool/TIDA-010024?keyMatch=TIDA-010024&tisearch=Search-EN-everything&usecase=part-number

Using a CC1312R1 LaunchPad revision D (silicon revision E) with BOOSTXL-SHARP128 LCD screen.

I am not able to get debug output from the LCD or the UART using the debug_root_push or debug_push configurations.

I can confirm the MCU is running by setting breakpoints, and watching LED status, so data is being transferred between the LaunchPads and the MCU is not frozen.

I have enabled either UART or LCD in the following file...

6lowpan_mesh_ti_15_4_cc1312_tirtos_ccs/Application/Defines/sensor.opts removing the "x" in one or the other of the two below defines.

-DxBOARD_DISPLAY_USE_UART
-DxBOARD_DISPLAY_USE_LCD

Then a clean and rebuild was performed.

The text "TI Sensor" will be displayed either on the LCD or in the serial terminal, depending on the above setting, but after that no debug output.

I can confirm the debug does stop on a line such as the following... and executes it but noting is outputted to the LCD or the UART.

Below is copied from 6lowpan_mesh_ti_15_4_cc1312_tirtos_ccs/6lowpan/app_task_root.c

sprintf(msg2,"RX: src:%04x hop:%02d seqNo:%04d size:%04d numTx:%04d numRx:%04d RTT:%08d DeliveryRatio:%02d.%02d",addr, hops, seqno, size,
node_list[i].num_tx, node_list[i].num_rx, node_list[i].avgDelay, node_list[i].deliveryRatio/100, (node_list[i].deliveryRatio-(node_list[i].deliveryRatio/100)*100));

UART_write(handle, msg2, strlen(msg2));
UART_write(handle, msg1, strlen(msg1));

The command in 6lowpan_mesh_ti_15_4_cc1312_tirtos_ccs/Application/ssf.c, however, writes to the LCD correctly, this is where the "TI Sensor" text originates from it seems.

LCD_WRITE_STRING("TI Sensor", 1);

  • I am going to reply to my own thread here but after some more investigating, regardless of the following two settings in the below file, data is output the UART correctly, 115200 baud.  I guess I am unclear what the below settings change, besides enabling the LCD.

    6lowpan_mesh_ti_15_4_cc1312_tirtos_ccs/Application/Defines/sensor.opts

    -DxBOARD_DISPLAY_USE_UART
    -DBOARD_DISPLAY_USE_LCD

    This is the data output I see, and I think I have answered my own question...

    TX: numRoute:0001 dest:f574 seqNo:0001 txTime:00000190
    RX: src:f574 hop:01 seqNo:0001 size:0100 numTx:0001 numRx:0001 RTT:00000173 DeliveryRatio:100.00
    TX: numRoute:0001 dest:f574 seqNo:0002 txTime:00000200
    RX: src:f574 hop:01 seqNo:0002 size:0100 numTx:0002 numRx:0002 RTT:00000298 DeliveryRatio:100.00
    TX: numRoute:0001 dest:f574 seqNo:0003 txTime:00000210
    RX: src:f574 hop:01 seqNo:0003 size:0100 numTx:0003 numRx:0003 RTT:00000259 DeliveryRatio:100.00

    I was expecting to see debug information on the attached LAUNCHXL-SHARP128 LCD display, but, it appears not to be implemented as I assumed.

    The only thing displayed on the LCD is "TI Sensor"

    This thread can be marked as resolved, but leaving it open for a little bit incase there is any other feedback on these observations.

  • Hi Allan,

    We didn’t use LCD output for the example and you don’t need to change sensor.opts file. The UART configuration was set in the application codes and the logs can be seen only for the data collector.

    If you want to get some logs in the end-node side via a serial terminal, you will need to add UART interface similar to the data collector.

    With Regards,

  • Hi Prasanna,

    Thank you for the reply and suggestions!  I believe I also came to a similar conclusion.

    I have been able to get data output correctly but now looking into collector_sm and sensor_sm TI 15.4 examples in the SimpleLink CC13x2 26x2 v3.20.00.68 SDK.

    The above mesh example from TIDA-010024 is close to the project requirements, but was hoping for commissioning, similar to ZigBee.
    I almost would like to have ZigBee support on the CC1312, but, there is no support on the subgiga bands as of yet.
    No issues with moving forward with the TI 15.4 stack, it appears to offer everything necessary as it is just for sensor data transmission.

    I have located this commissioning logic in the SimpleLink CC13x2 26x2 v3.20.00.68 SDK collector_sm and sensor_sm examples.

    Next I will attempt to merge the mesh logic from the TIDA-010024 reference into the newer SDK, I expect there to be some difficulties ahead.