Part Number: TMS320F28P650DH
Other Parts Discussed in Thread: C2000WARE
Dear colleagues,
when I import the UART example from "C2000Ware_6_00_00_00\driverlib\f28p65x\examples\c28x\uart\" it does not work properly. What happens is that the code configures the UART periphery improperly.
As soon as I step the code and reach the generated block in board.c :
void myUART0_init(){
//
// Set myUART0 baud rate and configuration
//
UART_setConfig(
myUART0_BASE, // base address
200000000, // UART source clock
115200, // baud rate
(UART_CONFIG_WLEN_8 | // word length
UART_CONFIG_STOP_ONE) // stop bits
);
the debugger jumps to a strange location in uart.c and starts pretty much stepping through the comments section. There is obviously disconnect between the object/binary file.
To fix that, I need to exclude driverlib.lib from the compilation and include the device/driverlib to the compilation. Then it works properly.
For this reason, i believe that the provided driverlib.lib is not compiled properly and this should be fixed.
To repeat this behavior:
import the "uart_ex1_echoback.projectspec" project for P65x and run it. It won't work properly (the FIFO will be enabled by and word size will be 11.
Best regards,
Jiri Panacek, ISC
To E2E admins: This new contact window is terrible and the text window can't be even resized