Content originally posted in LPCWare by Ex-Zero on Mon Mar 25 01:26:04 MST 2013
What do you think is your compiler trying to tell you with:
Quote:
char uart0_buf[];
warning: array 'uart0_buf' assumed to have one element
If you are still unsure about array size, look in your map file:
And surprise, it's 1 byte :) So this is a safe 1 byte array ;)
Then you are filling this array with sprintf:
Quote:
sprintf(uart0_buf,"Testing1234 - Uart 2\n\r"); // Print Message String
That's safe, too. Sprintf is using start address of array uart0_buf and writing your data ;)
Memory view is showing your string in RAM, so the compiler was executing all your nonsense :D