cancel
Showing results for 
Search instead for 
Did you mean: 

[STM32G0B0] External interrupt

YDann.7
Associate III

Dear,

 

I'm using a STM32G0B0RET6 as MCU and I encouter a bug on GPIO external interrupt specifically on PC14.

 

Configuring as external IT on rising edge, it works correctly and the interrupt is generated only on rising edge.

Configuring as external IT on falling edge, an interrupt is generated 2 times, 1 on falling edge and 1 on rising but both call the HAL_GPIO_EXTI_Falling_Callback callback.

Configuring as external IT on falling and rising edge, an interrupt is generated 3 times (consistent with previous configurations).

Configuring this pin (PC14) as external interrupt on falling edge generates a falling interrupt on rising edge.

(I precise I checked EXTI registers and they are correctly configured)

 

If I do same tests on PC13, all work correctly. ITs are generated in accordance with the configuration.

 

A workaround is to the check the state of this pin in the interrupt callback but it seems to be a bug.

 

(and I saw nothing in the errata sheet)

0 REPLIES 0