Hi there,
I've used the blinky example program from Keil for my keil MCBSTR9 evaluation board. I've modified it to send and recieve data on UART0. This is working perfectly I've used the standard ST library for the STR912FW44 MCU for initialization of the UART.
I've tried to make my own program (new project) for sending and recieving UART data, however when I declare my baudrate in the standard UART_init struct (UART_BaudRate) it is 12 times higher when I run the program! so if I define 9600 it becomes 115200 for example. There is somewhere a multiplier wrong but i don't know where.
I've tried to copy the STR91x.s file from the Blinky example to my own program so that the clocks and PLL are set the same. This doesn't get rid of the problem.
Anyone knows what I can possibly be forgetting? (I've used the same UART initialization in both programs and also the same ST library)
Fixed! Apparently there's a difference between the STR91xR.LIB (Release Library) and STR91xD.LIB (Debug Library) files. I've now used the release library and now its working. Gonna let ST know they've screwed something up...