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.

Using LaunchXL2-TMS57012 for PIL Testing

Other Parts Discussed in Thread: HALCOGEN, LAUNCHXL2-TMS57012, TMS570LS1224

I've been following Anthony Seely's example for RM48 series PIL testing located on Mathwork's File Exchange (www.mathworks.com/.../making_customizations.html:1230:0) and ran into a problem with serial communication back to Simulink. The files compile just fine and deploy to the Launchpad but I get the same communication time out found here: (e2e.ti.com/.../1278719). Tried removing SCIInt() and still get the same error.

Any ideas? The only difference between the RM48 and the Launchpads for TMS57012 is the XDS110 class probe. Using Matlab R2014b, CCS 6.1 and HALCoGen 04.04.00.

  • Hi Shawn,

    Which of the 2 UARTs are you trying to connect to? For the launchpad - you need to connect to the Application/User UART. The other UART isn't enabled at the moment (doesn't go anywhere - it's for instrumentation features to be added in the future).

    Can you confirm whether or not you tried to run the echo program on the UART first, to make sure the HalCoGen driver is setup to talk over the same UART that's connected to the XDS110 on the board? There's a few different SCI ports - so you need to get the right one.
    It should be SCI1 on the launchpad.

    Last - we've noticed some issues with the virtual COM port on the XDS110 - where it isn't released after doing something (haven't quite figured out what yet) and you need to power cycle the board before you can open the COM port. There's some chance you may be running into this issue.
  • Hey Anthony,

    I'm trying to connect to the Application/User UART COM port. I was just able to get the loopback function that you had provided as part of the package working. For anyone else trying to work with the TMS570LS1224, the User UART connects to SCI2 (SCILIN) on LAUNCHXL2-TMS57012.

    I tried to take all of the code from HalCoGen that was working in the loopback test and copied it over to where I have the code for PIL testing and get the timeout error. I tried using the same settings in HalCoGen and generating code and still had the same issue.

    Haven't really seen any issues with the XDS110, but I've started to disconnect the board every once in a while to prevent any issues.