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.

TM4C1290NCPDT: [SDK]support need

Part Number: TM4C1290NCPDT
Other Parts Discussed in Thread: EK-TM4C1294XL

Tool/software:

Hi team,

 my customer using TM4C1290 in some IND EE project, now customer kick off the A&T testing tool for testing the TM4C1290.

 After checking the SDK of M4, Is there any example of serial port receive interrupt for TM4C1490? The two examples in the SDK both call blocking receive functions.

Tks for your checking here.

  • Hi,

      Please refer to the example in C:\ti\TivaWare_C_Series-2.2.0.295\examples\boards\ek-tm4c1294xl\uart_echo. In this example, the receive side uses interrupt mode to echo back the data to the transmitter. 

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    //*****************************************************************************
    //
    // The UART interrupt handler.
    //
    //*****************************************************************************
    void
    UARTIntHandler(void)
    {
    uint32_t ui32Status;
    //
    // Get the interrrupt status.
    //
    ui32Status = MAP_UARTIntStatus(UART0_BASE, true);
    //
    // Clear the asserted interrupts.
    //
    MAP_UARTIntClear(UART0_BASE, ui32Status);
    //
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hi Tsal,

     Now my customer also using TM4C1290 for two CAN communication for internal self test. using CAN0 and CAN1 ,but report the below error.

    would you help to check the below code to help us fix this bug?

     

    test_can.c
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    #include "test_can.h"
    #include "driverlib/rom.h"
    #include "driverlib/rom_map.h"
    #include "stdio.h"
    #define CAN0_TX_LEN 4
    #define CAN0_RX_LEN 4
    #define CAN1_TX_LEN 4
    #define CAN1_RX_LEN 4
    tCANMsgObject Can1_TxMessage;
    tCANMsgObject Can1_RxMessage;
    uint8_t Can1_Tx_Buf[CAN1_TX_LEN];
    uint8_t Can1_Rx_Buf[CAN1_RX_LEN];
    uint8_t can1_flag = 0;
    tCANMsgObject Can0_TxMessage;
    tCANMsgObject Can0_RxMessage;
    uint8_t Can0_Tx_Buf[CAN0_TX_LEN];
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hi,  

      There are CAN examples in C:\ti\TivaWare_C_Series-2.2.0.295\examples\peripherals\can. I will suggest the customer starts with simple_tx.c for one CAN controller and simple_rx.c for another controller on the network. To test these examples, a CAN network must be built meaning that a CAN transceiver is implemented for each CAN controller with proper termination resistor on the network.