Hi,
I have a problem with the sending of anything over UART to my PC from the F28069M Launchpad. When i send it with my code i get random characters appearing on the terminal which seems to suggest that the baud rate is wrong (i can also see that the numbers received by my computer are completely wrong when i view it in a different terminal). But when i run the example UART program (Example_2806xSci_Echoback.c) (which has the exact same SCI configuration settings as mine) it works perfectly.
I've tried copying all the functions from the example into my code and commented out all my other code so that it is basically the same as the example and it still doesn't work. When i pause it as it loads the tx buffer i can see that the correct character is loaded but what is received at the other end is completely wrong.
The only difference between the two is that the CLA is set up in my code (not that it is initialized or doing anything but just that there is cla code existing in the program and program space has been allocated for the cla)
Any reasons why it might not be working? Any build settings i may have missed? Below is the main program loop, where inituart() is the same as the initialization functions in the example and the send function is also the same
Thanks,
Peter
void main(void)
{
InitSysCtrl();
InitSciaGpio();
//Initialise and reset Peripheral interrupt vector
DINT;
InitPieCtrl();
IER = 0x00000000;
IFR = 0x00000000;
InitPieVectTable();
InitUART();
while(1)
{
msg = "\r\n\n\nHello World!\0";
scia_msg(msg);
}
}