cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX STM32MP1 NVIC EXTI disabled ?

debugging
Lead

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

1 ACCEPTED SOLUTION

Accepted Solutions
debugging
Lead

CLOSED, First need right click on the pin and select Cortex M4

View solution in original post

4 REPLIES 4
Olivier GALLIEN
ST Employee

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

Olivier GALLIEN
In order 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.
debugging
Lead

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!

Olivier GALLIEN
ST Employee

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

Olivier GALLIEN
In order 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.
debugging
Lead

CLOSED, First need right click on the pin and select Cortex M4