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.

  • Resolved

F28M36H33B2: USB_UART Monitor

Prodigy 130 points

Replies: 26

Views: 925

Part Number: F28M36H33B2

I am trying to get my Gui Composer application to connect with USB-UART. I have added the serial monitor code to my target, (M3 core of the Concerto) and added the USB-UART communication monitor in the Gui properties. I am able to get it working in CCS by doing the following: my target is running from either flash or ram,I add Uart communication in the configurations file and then load symbols to the UARTConnection in the debug view. I can then view all variables in the expressions window, and if I export my gui to CCS desktop view and run it from CCS it connects to my target and updates the values. However, I am not able to get the UART connection working while running the gui from the gui composer cloud web interface or when exporting the gui to standalone app. In both cases I only get an error: "TICloudAgent Config Error:Failed to connect to F28M36H33B2 device: Please unplug your hardware, then plug it back in and try again". The latter is actually what I would like to do, to have a stand-alone app that connects to the target using USB-UART. Note that the xds connection works perfectly from the cloud and from CCS. Why would the USB-UART connection work in CCS but not the stand-alone app or from the cloud? 

  • In reply to Albert Smit23:

    Hi Albert, 

    I was thinking of a custom configuration that looks like a picture below. It is a little bit different than what you have. Rest of your configuration steps look ok. With custom target_config.ccxml I was trying to eliminate 28x from the picture. 

    I have a slightly different control card 28M35HC52 with XDS100v2, I verified that JTAG based approach works with a config as shown below. However, I am having trouble getting simple UART example to work. I tried uart_echo example from ControlSuite, but it does not work as expected. Thus I am not able yet to try and duplicate your setup. 

    Martin

  • In reply to MartinS:

    Hi Martin

     I have made a target config just like yours and it does not work. How should I proceed from here? I really need to deploy the gui as a standalone application using UART monitor comms.

  • In reply to Albert Smit23:

    target_config.ccxmlHi Albert,

    I have been struggling with our board and getting a simple UART echo example to work. I don't see any output from our control card.

    I lead you the wrong path with how to create a custom xml file. I have synched up with another engineer and we believe that attached file should work. However, I still have not been able to get my board to work, thus I can't confirm that it will work. However, would you be willing to try one more file? Please download attached ccxml, You probably will need to delete the one that was previously uploaded and then upload this new one. You should have only one target_config.ccxml file. Please let me know if this works and I can explain how this was created, if you are interested.

    Martin

  • In reply to MartinS:

    Hi Martin

    Thanks for the file. It seems that we are making progress but not yet there. I have uploaded the config file and started the gui. This is the message that I got after it tried to connect:

    Connected to TI Cloud Agent.Connecting to target ...

    Error downloading program symbols: Encountered a problem loading file: C:..../Temp/ti_cloud_storage/F28M36H33B2.data Could not determine target type of file Please unplug your F28M36H33B2, then plug it back in and try again.

    Then I opened the config file in CCS and changed the device to F28M36H33B2 (it was on F28M36P53C2) and left everything else in the file exactly the same. I uploaded the file again and started the gui again. This is the messages that I got this time:


    Connected to TI Cloud Agent.Connecting to target ...
    COM15:9600 verifying connection...
    Communication with Target Failed: Target failed to read 0x200053C8

    Can't get it to work any further that that. Do you why it gives this error?

     

  • In reply to Albert Smit23:

    Hi Albert,

    I work with Martin and he will be await for the next few days. I'll try to see if I can help you with this issue in the mean time.

    Can you tell me what is the baud rate that you are expecting to use for your device? From the error message that you have above, it is using COM15 with baud rate 9600. Does this match your device's setting?

    Patrick

  • In reply to Patrick Chuong:

    Thanks Patrick

    Yes the baud rate and com port is correct and are the same as when I connect the gui with CCS desktop view, which works fine.

    I also need to mention that during the connection period, when using your config file, at some point my target device stops running for some reason. 

    regards

    Albert

  • In reply to Albert Smit23:

    Can you enable the ticloudagent logging and attach the logs here?

    You can enable logging by removing REM from the SET lines in this file <user.home>\TICloudAgent\ticloudagent.bat. 
    Reload the browser page to pickup the change in the bat file.

    Regards,
    Patrick

  • In reply to Patrick Chuong:

    Albert,

    I am trying to reproduce your issue, but I don't have the target code setup for the serial monitor. Do you have A M3 test project that you can upload here? It will greatly reduce the time that I need to setup a build-able project and then use it to debug the issue with GUI Composer communication issue.

    Patrick

  • In reply to Patrick Chuong:

    Patrick

    Here are the log files and a very simple M3 project with the serial monitor added. It has a global variable "CycleCounter" which you can bind to the gui and you should see it counting. I have tested it with CCS desktop view and it works when connected over UART.

    GuiComposerUART_Test_M3.ziplogs.zip

  • In reply to Albert Smit23:

    Hi Albert,
    Thanks for the project and I am able to reproduce the issue. I'll need sometime to investigate the issue and I'll get back to you as soon as I can.

    Patrick

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.