This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Hard fault in STM32F101RF due to MRC2 Disassembly ??!!

Hi all,

I am having a bootloader code wherein I will sending/receiving data via USART . I have configured USART to operate in interrupt mode.

USART functionality works perfectly fine independently. Verified this with multiple read/write instances.

When I integrate USART code with my bootloader code, bootloader will keep on checking if there is any pending data to read from USART.

If there is any pending data, bootloader will read the Data Register (DR) for the data received already through interrupt. (kind of polling + interrupt)

My problem :

Whenever there is an USART receive interrupt is triggered , inside receive interrupt service routine hard fault error occurs.

PC says its inside hard fault routine where I read data from DR.

But a strange thing I saw is, from the location where hard fault hits, in the disassembly I see only MRC2 commands

Is the issue occuring because of this ?? 0x8004802 is the location where my hardfault hits.

Kindly enlighten me on this

Parents Reply Children
No data