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.

LAUNCHXL2-RM57L: Configuring multiple sciREGs for UART Tx and Rx.

Part Number: LAUNCHXL2-RM57L
Other Parts Discussed in Thread: HALCOGEN,

I have gone through HALCOGEN tutorials on how to setup and configure sci UART communication on sciREG1. I want to understand how to setup a UART to run on sciREG2, sciREG3, or sciREG4.

Based on the HAL example (example_sci_uart_9600.c), I tried to set this demo up on sciREG2, but I can not seem to get any UART communication to work outside of sciREG1. My end goal is to have multiple UARTs configured and running at the same time.

Can some one help me get a demo program running with UART communication on sciREG2?

  • Hello Josh,
    The steps to use SCI2 are as follows:
    In HALCoGen:
    - Enable SCI2 driver from HALCoGen Driver Enable Tab;
    - In PINMUX Tab check LIN2/SCI2 checkbox and clear conflicts if exists;
    - In SCI2 Tab configure the port to fit your needs or let them be same as in example;
    - Generate code;
    In CCS:
    - change #define UART sciREG1 to #define UART sciREG2

    This should be enough for configuration and software.

    Please, consider where different SCI pins are exposed. For LAUNCHXL2-RM57L they are as follows:
    - SCI1 port is exposed to connector J5, pins 3 and 4;
    - SCI2 --> J9.9,10;
    - SCI3 --> J1.3,4;
    - SCI4 --> J12.54,56 ;


    Best regards,
    Miro
  • Thank you! These are the steps I tried on my own with no results. I am still not seeing any COM port output on sciREG2, 3, or 4.

    I am using XDS110 User UART for the communication that I can successfully see with sciREG1. Is there a way to configure the user UART to work with the additional sciREGs? How would I go about setting that up if that is possible?

  • Hello,
    It should work in that way. Please check whether in PINMUX you have set pins needed for corresponding SCI port. Check whether appropriate COM port is set for XDS110 . Do you have oscilloscope to check pins direct?

    Best regards,
    Miro
  • 8551.UART_sciREG2_Demo.zipI have verified that I have set the LIN2/SCI2 port in the PINMUX settings.

    I have attached the code for the project. This code include the HAL project that has the SCI1 and SCI2 drivers enabled. The corresponding interrupts have also been enabled. And when #define UART sciREG1 is defined, the COM port communication can be seen with a terminal connection from CCS ( COM3 for my particular setup). When I compile and run with #define UART sciREG2, I see nothing on the terminal connection for COM3 in CCS. 

    I have tried this with sciREG1, sciREG2, sciREG3, and sciREG4 enabled together, and enabled independently. I have only had success with sciREG1. Can you do a sanity check on this project to ensure I am not overlooking something.

    I do not have access to an oscilloscope at this time.

  • Hello,
    I guess you are using virtual COM port that is connected to SCI1 (see schematic diagram - processors.wiki.ti.com/.../LAUNCHXL2_570LC43_RM57L_SCHEMATICS.pdf ) . Am I right?
    To see what is on SCI2 you should connect UART-->USB adapter to J9 pins 9 and 10.

    Best regards,
    Miro
  • You are correct!