Skip to main content
Explorer
February 3, 2024
Solved

Interrupt problem on stm32f7 (bare-metal)

  • February 3, 2024
  • 4 replies
  • 2293 views

Hello, I would like to contact you because, following the code made on Keil uvision 5, I cannot get my interrupt to work.
Objective of the code, turn on and off the LED (pb0) of the card with the button (pc13) on it itself.
PCB Used : STM32F767ZI

    This topic has been closed for replies.
    Best answer by Paul_TESSON

    I have found the problem, we must remove pupdr.

    4 replies

    Technical Moderator
    February 3, 2024

    Hello @Paul_TESSON 

    I suggest you to refer to this LL_example to understand the configuration. Then you can convert it to use direct register programming if you want.

    Best Regards.

    STTwo-32 

    Super User
    February 3, 2024

    Is SCB->VTOR set to 0x08000000?

    Can you step through and verify GPIOC->IDR reflects that the pin is toggling?

    Super User
    February 4, 2024

    Start with plain loopdelay blinky.

    Then proceed with copying state of button into LED in a loop.

    Buttons are bouncy, EXTI on a pushbutton is not a good idea (except for simple experiments).

    Generally, read out and check/post content of relevant GPIO and EXTI and SYSCFG registers.

    A generic "interrupt does not fire" checklist here.

    JW

     

    Paul_TESSONAuthorAnswer
    Explorer
    February 11, 2024

    I have found the problem, we must remove pupdr.