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.

TMS570LS3137: Hercules safety microcontroller TMS570ls3137 - UART on peripheral interface (SCI2) not working properly

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN,

Hi,

I am trying to use the example_sci_uart_9600.c project given in halcogen.

With the virtual com port on the usb jtag, i receive the data just fine on my pc terminal but if i try to use the peripheral interface then am receiving garbage data.

I am not sure what is the problem, could it be due to the CPLD routing the line to usb jtag?

  • Hi Haris,

    On TI TMS570LS31x HDK board, the virtual COM port is mapped to device SCI2. Which hardware PCB board did you use?

    if i try to use the peripheral interface then am receiving garbage data.

    Can I have more details?

  • The HDK TMS570lS3137 Development board peripheral interface (connected to a simple daughter board).

    Instead of using the onboard xdsv200 jtag provided virtual port for serial communication, i wanted to test the lin(SCI2) port on the peripheral interface. Now its working fine with the jtag i.e i am able to see proper data on PC terminal with provided Halcogen uart example, but with direct serial connection to peripheral interface LIN port, i get random/garbage data on PC terminal. (USB jtag not connected simultaneouly as well, just to rule that out)

  • Hi Haris,

    UART is used on point-to-point communication. If the USB JTAG is not connected, the FT2232 is powered off, so the SCI2 + your daughter + PC should work. Does your daughter-card have a UART transceiver? 

    If you connect your daughter card to SCI1, does it work?