Skip to main content
Paul_TESSON
Associate II
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

Best answer by Paul_TESSON

I have found the problem, we must remove pupdr.

4 replies

STTwo-32
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 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
TDK
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?

"If you feel a post has answered your question, please click ""Accept as Solution""."
waclawek.jan
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_TESSON
Paul_TESSONAuthorAnswer
Associate II
February 11, 2024

I have found the problem, we must remove pupdr.