2019-09-24 08:09 AM
1 Select STM32MP151 (This case AAAx)
2. Select an GPIOx and set to GIPIO_EXTx
3. Goto NVIC: EXTI option is disabled
(Checkbox cannot be selected)
4. Goto GPIO : Pin can be configured as interrupt
How to enable interrupts for NVIC for GPIO's in order to generate the code ? See pictures. CubeMX 5.3.0, Linux
Solved! Go to Solution.
2019-09-28 07:10 AM
CLOSED, First need right click on the pin and select Cortex M4
2019-09-25 02:24 AM
Hi @debugging
it seems you have miss one step :
1 Select STM32MP151 (This case AAAx)
2. Select an GPIOx and set to GIPIO_EXTx
3.Select again GPIO under Pinout View, right click -> Pin Reserved -> Cortex-M4
4. Goto NVIC: EXTI option checkbox can now be selected
Indeed, this is not obvious and not well documented. We will work to enhance this.
Hope it help
Olivier
2019-09-25 07:24 AM
Hello Olivier ,
Many thanks. That worked.
Being on this topic, snipped of the code:
EXTI_ConfigStructure.Trigger = EXTI_TRIGGER_FALLING;
HAL_EXTI_RegisterCallback(&hexti, HAL_EXTI_FALLING_CB_ID, Callback);
But , no matter what, the default handler is called and not the custom function Callback.
Thanks!
2019-09-25 07:30 AM
Hi @debugging
Could you refer to Cube Package example
STM32Cube_FW_MP1_V1.0.1\Projects\STM32MP157C-DK2\Examples\GPIO\GPIO_EXTI
And check what may be wrong in the IT configuration ?
Thanks
Olivier
2019-09-28 07:10 AM
CLOSED, First need right click on the pin and select Cortex M4