cancel
Showing results for 
Search instead for 
Did you mean: 

Interrupt problem on stm32f7 (bare-metal)

Paul_TESSON
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
Paul_TESSON
Associate II

I have found the problem, we must remove pupdr.

View solution in original post

4 REPLIES 4
STTwo-32
ST Employee

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
Guru

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".

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
Associate II

I have found the problem, we must remove pupdr.