2010-09-26 10:28 AM
Hard Fault on reading DR in USART
2011-05-17 05:08 AM
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);