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

Pointer stays at hardfault handler.

Hi all

I have create a new project, the same that the provided EXTI. With its own libraries, etc. It gets compiled succesfully but when debugging the pointer stays at this function.
The project is the same that EXTI example, therefore i do not understand and it is making me nuts.

I am using discoveryF4

void HardFault_Handler(void)
{ /* Go to infinite loop when Hard Fault exception occurs */ while (1) { }
}

Thanks++Carlos

Parents
  • thanks for your answers.

    The case is that i know that it should work bacause the example EXTI works perfectly. And i do not know if it is due to any project configuration/setting.

    I have read that i should see which function/instruction causes the hardfault handler. I read that looking at PSRegister i could find out the last executed instruction but i do not know how to see which instruction there is at such memory position.

    How could i know which event trigs it as you mentioned??

    Best regards and thanks in advance!

    CarloSM

Reply
  • thanks for your answers.

    The case is that i know that it should work bacause the example EXTI works perfectly. And i do not know if it is due to any project configuration/setting.

    I have read that i should see which function/instruction causes the hardfault handler. I read that looking at PSRegister i could find out the last executed instruction but i do not know how to see which instruction there is at such memory position.

    How could i know which event trigs it as you mentioned??

    Best regards and thanks in advance!

    CarloSM

Children