Skip to main content
greg_t
Associate III
September 26, 2010
Question

Hard Fault on reading DR in USART

  • September 26, 2010
  • 1 reply
  • 429 views
Posted on September 26, 2010 at 19:28

Hard Fault on reading DR in USART

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    May 17, 2011
    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 VenmoUp vote any posts that you find helpful, it shows what's working..