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.
F28M36H33B2: Gui composer USB-UART Monitor connection not workin
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:
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.
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to MartinS:
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.
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.
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 Patrick Chuong:
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.
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.
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.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.