cancel
Showing results for 
Search instead for 
Did you mean: 

USART only sends last character

infoinfo962
Associate II

33123

10 REPLIES 10
infoinfo962
Associate II
Posted on May 17, 2011 at 14:02

Finally got a change to pick this up again after a few hectic days. Which wasn't a bad thing since it offered a fresh look again and I quickly found the root of the problem. It's one of those 'headdesk' moments...

You were right John. One of my headerfiles defined RESET aswell. But since I hadn't touched that file after migrating existing code to STM32, I never thought of it. Renaming that specific define solved it all and all pieces of the puzzle fell into place.

There's just 1 thing bothering me. Why didn't the compiler warn about a redefinition? Ride7 projects disable all warnings by default, but even after enabling all warnings with -Wall you don't get a redefinition error.

Thanks to all for providing hints and tips!