Skip to main content
debugging
Lead
September 24, 2019
Solved

CubeMX STM32MP1 NVIC EXTI disabled ?

  • September 24, 2019
  • 4 replies
  • 2768 views

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

This topic has been closed for replies.
Best answer by debugging

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

4 replies

Olivier GALLIEN
Technical Moderator
September 25, 2019

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
debuggingAuthor
Lead
September 25, 2019

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
Technical Moderator
September 25, 2019

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
debuggingAuthorBest answer
Lead
September 28, 2019

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