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.

LP-EM-CC2340R5: Menu module: The menu is not displayed in the UART terminal

Part Number: LP-EM-CC2340R5
Other Parts Discussed in Thread: CC2340R5

Tool/software:

Good afternoon,
I use cc2340r5 and simplelink_lowpower_f3_sdk_8_10_01_02 .
My program is based on basic_ble with some logical modifications.

I saw a strange behavior of the menu module, it works fine with the Tera Term terminal if I scratch the full overwrite/reset firmware on the device then the menu will be displayed in full. If I simply turn off the terminal, turn it on again and connect the device (turn on its ticks after connecting), the menu will not be displayed, only then some fields will appear when you print them out, but not the main menu fields (toolbar, navigation, etc.)

I don't quite understand if this is a terminal problem or some problem in the implementation of these module settings?

Also an additional question, a similar behavior is observed if the device went to Standby, before clearing the terminal, and after waking up, I start the menu again, but nothing is displayed, only later it prints the fields that I output via printf.

Regards, Vadim.

  • Hello Vadim,

    I hope you are doing well. 

    If I simply turn off the terminal, turn it on again and connect the device (turn on its ticks after connecting), the menu will not be displayed, only then some fields will appear when you print them out, but not the main menu fields (toolbar, navigation, etc.)

    - I am not familiar with Tera Term, but if it works like PuTTY then I can assume that the terminal needs to be open before any planned UART communication is to happen; if the terminal is open after UART communication happens we could lose information, especially if its only sent or updated one time, which is what it sounds like is going on here. 

    Also an additional question, a similar behavior is observed if the device went to Standby, before clearing the terminal, and after waking up, I start the menu again, but nothing is displayed, only later it prints the fields that I output via printf.

    - So in this case the terminal is open before any UART communication but after the device goes to standby and wakes up the menu is not displayed correctly? We may need to look into the Tera Term terminal settings in this case, or look into the code as the device is going into standby to confirm that the menu is being correctly reset, and that when coming out of standby a new menu command is sent.

    Thanks,
    Alex F

  • Hello Alex,

    I will do more research, now I can say that for my part I do Display_clear and Display_close before going to sleep mode, and after exiting I do menu_module start() again. Maybe, as you say, it's some feature of the terminal, I'll try with another terminal and report the result, but I'm not sure what it could be today. I was working on the led driver, so I got a little off topic from the menu, I will try to come back to it in a couple of hours, either in the evening or tomorrow morning.

    Thanks,
    Vadim F

  • Hello Vadim,

    Alternatively, instead of using Display driver we could just use the UART driver settings (UART_write(...);). 

    Thanks,
    Alex F