cancel
Showing results for 
Search instead for 
Did you mean: 

Hard Fault on reading DR in USART

greg_t
Associate II
Posted on September 26, 2010 at 19:28

Hard Fault on reading DR in USART

1 REPLY 1
Posted on May 17, 2011 at 14:08

Hard to tell without a buildable full example. Can you determine the address that is hard faulting, what is that code, and what are the registers at that point. Reading the USART shouldn't fault. If you read/write an unaligned word in memory, or access memory that isn't present it will also fault.

USART_ReceiveDat(USART2); should be  USART_ReceiveData(USART2);     

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..