STM32 Pininterrupts do not trigger

Dear all,

I have the following platformio.ini (custom µC)


platform = ststm32
board = nucleo_f030r8
board_build.mcu = stm32f030r8t6
board_build.f_cpu = 48000000L
debug_tool = jlink
upload_protocol = jlink
framework = arduino
lib_deps =
stm32duino/STM32duino FreeRTOS@^10.3.1
build_flags = -DBOARD_BEEZER -gdwarf-2 -I "include" -L
board_build.ldscript = custom_ldscript.ld

I want to attach a interrupt to a pin:

pinMode(PB11, INPUT);
attachInterrupt(digitalPinToInterrupt(PB11, isr_ttlin0, CHANGE);

isr_ttlin0() will never trigger.

I retried with some more deeper approche:

stm32_interrupt_enable((GPIO_TypeDef *)GPIOB_BASE, GPIO_PIN_11, isr_ttlin0, GPIO_MODE_IT_RISING_FALLING);

isr_ttlin0() will still never trigger.

Does anybody see the problem?

Best,

Smon

Are there any other interrupts registered already? For PB11, it will use the EXTI11 resource, as would be used when interrupt would registered on PA11, PC11, PD11, PE11,…

With a debugger, can you see that the basic EXTI11_Handler() function is called?