2025-03-12 10:18 AM
Good afternoon,
I have a problem interrupting the TIM3 Timer, I inserted an output pin to make an alternation but no oscillation appears on the pin.
Source code attached.
I compared it with other examples and in my understanding everything seems to be fine. Would anyone have any idea what it could be?
Tks
Fernando
2025-03-12 11:13 AM
Read out and check/post content of TIM and relevant GPIO registers.
Generic "interrupt does not fire" checklist here.
JW
2025-03-17 9:34 AM
Hello,
I tried to generate a project on my NUCLEO-G0B1RE with the same configuration as you have and interrupt on TIM3 worked right. Did you try any other timer and output pins? Is the pin PA12 free? Is MCU working right with some basic program, for example toggling pin without any interrupts?
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.
2025-03-17 9:44 AM
Hi,
Thank you for the answer and for testing my code.
Indeed, I progressed with the tests and ended up discovering that the implementation is working, however, it only works when I turn the primary power off and on. It seems that the recorder reset is not enough STLINK-V3SET (Circuit below).
Any idea what it could be?
BR
2025-03-21 2:34 AM
Sounds to be one of the "inadvertently running bootloader/mapping system ROM at 0" cases.
In the non-running case, heck/post content of SCB_VTOR and SYSCFG_MEMRMP.MEM_MODE, and check where does program counter point to.
Check/post BOOT0 arrangement. Check/post option bits. Try to change SCB_VTOR upon startup to match the FLASH address.
JW