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.

Compiler/LAUNCHXL-CC1312R1: uartecho demo - can not connect to serial port

Part Number: LAUNCHXL-CC1312R1
Other Parts Discussed in Thread: CC1312R, MSP430FR2355,

Tool/software: TI C/C++ Compiler

  Am just starting out with this part and CCS. The example compiles and loads OK. But I can not connect to any uart. Windows 10 Device Manger shows:

Questions:

1) Which port is used to "talk" to the launchpad system that can configure, load and debug the C1312R ? When I try to connect to COM3 with TeraTerm, it says it can't connect.

2) Please explain what the use of these two ports are and how they are used.

3) In the code uartecho.c, there is a line of code:

uart = UART_open(CONFIG_UART_0, &uartParams);

Where does the constant CONFIG_UART_0  come from? I've looked at all the various .h files (quite the rabbit hole there....) and can't find it.

TIA

  • Make sure you don't open CCS at the same time when you try to start a console tool to connect to UART COM port.

  •   OK on that solution. This would imply that CSS has the UART port on the PC open. Can you please advise on the exact role or function that the two USB ports that are seen on the Device Manager are?

      I'm _guessing_ (never a good sign...) that the "Class Application/User UART" is the UART on the launchpad device that is used by programs the developer puts on the device. And it would appear that this is "UART 0" in most configurations.

      I'm also _guessing_ that the "Class Auxiliary Data Port" is the serial port used by CSS and debuggers to program the device and provide access for debugging tools.

      Please advise if this is the correct use. Also, please advise as to the role of the "console" window in CSS. Is that a console for a serial port, such as the Class Application/User UART ? If so, can that be used to interact with the UART in place of an external program? And if not, can you advise as to why CSS has that port open ?

      A full understanding of the use of the two COM ports seen in the Device Manager and knowledge of how CSS interacts with these ports would be very useful when diagnosing problems as work with the system progresses.

      Again, Thank You for your reply and I await this additional information.

  • To communicate with application running on CC1312R, you should use Class Application/User UART port.

  •   With CCS not running (i.e. killed the program) I still can not connect to the Class Application/User UART port.

    What's odd is that the debug port _did_ work under CSS and when CSS was running when I did a project with the MSP430FR2355 Launch Pad.

    I guess all I can do is play with it more at my end. It is, however, odd that CSS would open the port yet not have any way to let the user communicate with it. I am _guessing_ that the Class Auxillary Data Port is used by CSS to program and debug the device. As such, it's not clear why CSS would also open (and therefore "own") the Application/User UART.

  •   Tried a re-boot. The launchpad stayed up. With nothing else running, I still can not connect to the Class Application/User UART port. Tried Putty and Tera Term. Tera Term worked just fine with the MSP430, as I mentioned above.

    Any ideas? or is this just another reason to hate Windows 10 ?

     - pete

  • Try to following steps.

    1. Download uartecho example into your LAUNCHXL-CC1312R1.

    2. Restart your desktop.

    3. Start teraterm and connect to application UART of your LAUNCHXL-CC1312R1.

  • Could you show how you have set up putty? This example works out of the box without issues with win 10.

    For the CONFIG_UART_0 question, please open uartecho.syscfg and scroll down to UART.

  •   Tried the (1) Load  (2) restart PC  (3) Try to connect

    Still can't open the port. Device manager shows that (on my system) COM3 is the user UART. Neither TeraTerm or Putty can connect. Also power-cycled the launchpad, no change. On power down, the two USB serial ports go away. On power up, they show up.

    Code compiles OK, .syscfg looks good. 

    Not sure what this is. The debug serial port worked perfectly with the MSP430FR2355 part.

    So then I use the device manager -> properties -> advanced and assigned it to a different port # (COM5). Reboot. 

    Putty could _finally_ open the port, it echoed what I typed. TeraTerm didn't give COM5 as an option for connecting.

    Moved the port number _Back_ to COM3. Reboot.

    Putty could _finally_ open the port on COM3 and it echoed. TeraTerm now does not list COM3 as an option.

    So two things going on here ???  (1) Windows has some way where it looks like a port is in use (assigned to a task) when it's not. This may be why TeraTerm doesn't list it.

    (2) Windows had some bad status on the port, and moving it to another (COM5), then using it with Putty, then renaming it (COM3) cleared it up so that Putty could connect. But Windows still had something going on because TeraTerm could not see it/did not list the port.

    The ability to tell Putty to try to connect to a port "no matter what" is key here.

    I hate windows.

    So it's working, but you just have to "dance" a bit to get there and I have no idea why it now works.

     - pete

  • And it doens't work again....

    Answer me this:  If I disconnect the launchpad board, and then look in the Windows 10 device driver, I do not see the two ports that are associated with the launchpad. I then connect the launchpad board to the USB port.

    Now looking at the Device Manager, I see both ports. They are XDS110 Class ports. One is the Auxiliary Data Port, one is the Applications/User UART.

    I can not connect to either of those ports Tera Term or Putty.

    Should I be able to connect ?

    Nothing changes if I bring up CCS and load the UART echo program. This did briefly work once, as noted in the above post. Now it does not. I have tried all possible permutations of power cycling the board and the PC. Hence the question "Should I be able to connect to the UARTs the Device Manger sees or not?

    I note that UART connect issues seem to be a reoccurring theme for the last few years. If this is a driver issue on Windows 10, can you provide a URL to a driver I can forcibly re-load ?

    It just shouldn't take days to figure out how to connect to a UART that the Device Manager shows as existing.

     - pete

  • Hi Peter, 

    When the device is disconnected it shouldn't show up in the Device Manager so that's expected behavior and you should be able to connect when the device shows in the Device Manager. 

    Do you have another CC1312R1 Launchpad that you can try?

    Thanks, 
    Elin

  •   I'll buy another CC1312R. I don't think this will change anything. You stated:

    "you should be able to connect when the device shows in the Device Manager. "

    And yet, as you can see at the top of this thread, I see it. But I cannot connect. This is the crux of my problem.

    Will advise when the new CC1312R is in. I will be surprised if the results change though.

     - pete