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
  • I have checked again and actually when i start debugging, the RUN button is disabled and the pointer is here:

    ; Reset handler
    Reset_Handler PROC EXPORT Reset_Handler [WEAK] IMPORT SystemInit IMPORT __main

    LDR R0, =SystemInit BLX R0 => LDR R0, =__main BX R0 ENDP

    When I STOP the code execution it goes to:

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

    And it remains here forever!..

    I hope it helps so you can help me :D

    Thanks again

    CarloSM

Reply
  • I have checked again and actually when i start debugging, the RUN button is disabled and the pointer is here:

    ; Reset handler
    Reset_Handler PROC EXPORT Reset_Handler [WEAK] IMPORT SystemInit IMPORT __main

    LDR R0, =SystemInit BLX R0 => LDR R0, =__main BX R0 ENDP

    When I STOP the code execution it goes to:

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

    And it remains here forever!..

    I hope it helps so you can help me :D

    Thanks again

    CarloSM

Children