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.

uartstdio.c won't compile with UART_BUFFERED defined

Other Parts Discussed in Thread: CONTROLSUITE

I"m trying to implement some of the examples in Control Suite for the F28069.  The USB examples make use of the functions in uartstdio.c.  If I enable UART_BUFFERED, I get compile errors for several constants: 

"C:/TI/controlSUITE/device_support/f2806x/v136/MWare/utils/uartstdio.c", line 141: error: identifier "INT_UART0" is undefined

"C:/TI/controlSUITE/device_support/f2806x/v136/MWare/utils/uartstdio.c", line 141: error: identifier "INT_UART1" is undefined

"C:/TI/controlSUITE/device_support/f2806x/v136/MWare/utils/uartstdio.c", line 1539: error: identifier "UART_INT_TX" is undefined

"C:/TI/controlSUITE/device_support/f2806x/v136/MWare/utils/uartstdio.c", line 1558: error: identifier "UART_INT_RX" is undefined

"C:/TI/controlSUITE/device_support/f2806x/v136/MWare/utils/uartstdio.c", line 1558: error: identifier "UART_INT_RT" is undefined

 Where are these constants defined? 

In addition, with UART_BUFFERED not defined, the program compiles, but I see no UART outputs.  I'm using the F28069 control card with the docking station.  I have confirmed UART output over the FTDI UART with other programs.

  • Hi!

    Try to make the following definitions (better at some *.h, wich included at a project naturally):

    #define INT_UART0 21 // UART0 Rx and Tx
    #define INT_UART1 22 // UART1 Rx and Tx
    #define UART_INT_TX 0x020 // Transmit Interrupt Mask
    #define UART_INT_RX 0x010 // Receive Interrupt Mask
    #define UART_INT_RT 0x040 // Receive Timeout Interrupt

    Success is not guaranteed! Maybe something I lied (especially for INT_UART0,1).

    Regards,

    Igor