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/CC3200-LAUNCHXL: Running Example code for uart interrupt in cc3200 launchxl

Part Number: CC3200-LAUNCHXL
Other Parts Discussed in Thread: CC3200SDK, CC3200

Tool/software: Code Composer Studio

Hi 

I need a help ,now i'm working with cc3200 launchxl in ccs7 with CC3200SDK_1.3.0.,looking for uart interrupt code. 

now i just try to create a uart interrupt but i dont know how can i create it or there no example in the sdk. 

so please help me for this , is there any one have the example code for  uart interrupt  without rtos(working only)...

  • Hi Aju,

    Check out the uart_dma example in the SDK. This may not be your exact use-case, but it demonstrates the use of the UART interrupts and how to register with driverlib function calls.

    Best Regards,
    Ben M
  •  please see the picture ,it shows more than one uart ,now i'm using the launchpad, in every example (demo in sdk)they use usb to uart only ,how can i enable another pin of cc3200 for uart (in the picture have more than one uart ).i have to communicate with an external flash through spi ,i know it is possible to configure but i don't know if they are configure the same or not ,if not how can i  configure and use it .i expect a solid example .

    thank you 

  • sorry to repeat ,my ultimate need is to enable two uart and one spi for the system.is there any code available please post it here it may help others also.(please answer the two questions).
  • Hi!

    You will have to use the examples in the SDK as your reference. The fact that the UART is connected back to the USB does not impact how the software is written. It is simply set by the fact that J6 and J7 on the CC3200 LP are connected back through the FTDI chip. This can be changed by moving the jumpers to the bottom position.

    To setup other pins for UART or to enable the second UART peripheral on additional pins, I recommend you do the following -

    1. Go to dev.ti.com
    2. Select PinMux
    3. For Device, select CC3200. Then Start.
    4. Choose UART in the peripherals list.
    5. Select Add
    6. Choose the signals you require (depending on flow-control needs) and use the drop downs to select the pins you want to use
    7. On the right there will be a "Generated Files" section. You can download the pin_mux_config.c file which will provide a reference for enabling your clocks and muxing the pins to the correct function.

    Then you can follow the existing example to select settings as needed. It will be very similar to the example.

    Best Regards,
    Ben M