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.

Output on 2 UART with RM46 development kit

Other Parts Discussed in Thread: HALCOGEN, LAUNCHXL2-RM46

Hello,

I am trying to send data on both SCI and SCI2 on this device. The data I send on the SCI2 is being sent correctly, while on SCI nothing is apparently sent (or I am not receiving anything on minicom).

The purpose is to use SCI2 to send data and SCI for debug purposes. I set the Halcogen as follows:

I also activate SCI in the PINMUX and no conflicts are found.

I activate the TX INT in SCI Global 

Not sure what to do on the VIM channel configuration, could you please provide help on this?

On SW side I use a function send data defined as follows:

void sendData(sciBASE_t *sci, uint8 *text,uint32 length)
{
while(length--)
{
while ((sci->FLR & 0x4) == 4); /* wait until busy */
sciSendByte(sci,*text++); /* send out text */
}
}

and I pass sciREG or scilinREG accordingly

I also connect through minicom in order to check if the ouptut is ok. The checked port is ttyACM0 or ttyACM1. Non sure which one to use it.

I guess ttyACM1 should be the correct one.

Could you please provide any help in how to use two uarts?

Thank you in advance,

Regards,

Gabriele

  • Gabriele,

    The kits we have only include one USB-UART connection to the processor.

    You may see them enumerated w. multiple virtual COM ports but there's only one for connecting to one of the SCI's on the Kit.. the others are reserved for use by the debug tools.

    So you need to physically wire up a 2nd COM port with a USB/uart type adapter to use the other SCI.

    Sounds like you're not doing this or I think you would have mentioned it.

    Which kit are you using? [and you're on Linux?]
  • Hi Anthony,

    thank you for your reply, we wired up the SCI LIN 1 TX/RX pins with a USB/uart type adapter. The communication over this port is working but I cannot see any output printed on the other one onboard usb connector.

    We are using the LAUNCHXL2-RM46 and we are using Linux Ubuntu 16.04 LTS.

    Regards,

    Gabriele

  • So please check that your USB/uart adapter has 3.3V IO not 5V IO. Many have 5V IO levels.

    Make sure you have hooked it up in a 'Null' modem config TX -> RX and RX <- TX,
    and *not* TX <> TX, RX<>RX.

    Second test is to make a test program that simply sends a character in a loop over the SCI you have issues with and verify that you see the character coming out of the TX pin on the SCI.
  • Hi , i have the same issue.
    when i use scilinREG in function sciDisplayText ftom example data succesfully sent, but when i use sciREG i have a hang at waiting free

    while ((sciREG->FLR & 0x4) == 4); never finished