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.

CCS/LAUNCHXL2-RM46: Problems with using SCI and SCI2

Part Number: LAUNCHXL2-RM46
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

Hello!

I try to use SCI and SCI2 with Interrupts at Rx. Using the SCI works already, but the SCI2 with exactly the same registers and so does not give me an interrupt.

In HALCoGen i have enabled the drivers for sci2, enabled the interrupt on rx and enabled the interrupt No.13 (LIN1 High). And i "initialized" the interrupt by sciReceive once.

I did exactly the same stuff as for SCI but it wont work....

Could someone help me?

greets

  • Hi, I have tried to do this work before, but I think the version of Launchpad RM46, has not physically enabled the connection SCI2.
    I think it would be good if you think of using another version as the Hercules RM57!
  • Hello Kubiks,

    How do you check the SCI2 signals (pin 38 and 39) on the launchpad? The SCI2 signals are routed to the connector, but are not routed to another IC (TM4Cxx) which is used for UAB/SCI/JTAG.

    Regards,
    QJ
  • I have this fancy paper, which tells me, there is the LIN1 RX and LIN1 TX routed to the Header J6. I am using a rs232 3.3V cable and a terminal to send some bytes to the LIN1RX Pin. The Cable is definitly working. When i plug the cable to the SCIRX/TX, it works and i used an oscilloscope to see, if there is a valid signal incoming.

    Yesterday i found out, when it try to send data from the LIN1TX (used as SCI2) - it works. But only the receiving of data doesnt work so far.

  • Well, this is something new for me there is no idea that you can use the LIN, as output from SCI2!!

    could check your configuration of PINMUX in HalcoGen and select LIN1TX, maybe the fuse of this pin is not activated so You can not get a signal out there.

    Cheers!
  • Hello Kubiks,

    On the Launchpad, the pin 131(LINRX) and pin 132 (LINTX) are connected to TM4C129 device. Those signals along with the JTAG signals are converted to USB. You can use PC terminal (Tera Term, or the terminal in CCS) send and receive uart message to/from the launch via the usb cable.

    In HalCogen,

    1. Enable SCI2 (SCILIN) driver

    2. Configure SCI: 9600:1:8

    3. generate code

    In CCS:

    1. copy example_sci_uart_9600.c to your sys_main.c

    2. compile the project, then load to flash

    3. Run the code

    On PC:

    1. Open Tera Term terminal

    2. Configure the serial port: 9600:1:8

    3. you will see the message on the terminal.

    Here is the example code:

    5618.example_sci_uart_9600.c

    Regards,QJ