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.

CC3200 Uart received data from other MCU and print on console

Hi,

I want use both uart ports 1 uart will received data from other device (i.e. other mcu) and send it to console.Can you  help me with the procedure.I go through with uart demo code which getting data from console and echo it .but in my case i have to read it from other device and send it to console. What changes I have to made to achieve my objective.

Thanks & Regards,

Shashank

  • Hi Shashank!

    The exact way you will change the example will be up to you and depend a lot on your system/the data you send.

    Pay attention to how the data is moved around in the example's while(1){} loop. Specifically, take a look at the UartGetChar() and UartPutChar() functions. These are based on driverlib functions that can be used with the other UART instance when given the appropriate parameters. Take a look at CC3200-Peripheral_Driver_Library_User's_Guide.chm in the SDK for full details.

    You'll have to follow the setup in PinMuxConfig() to configure the correct GPIOs/clocking for the additional UART too. Refer to table 3-1 of the datasheet for pin details.

    Best Regards,
    Ben