Skip to main content
Davi
Associate II
August 29, 2020
Question

STM32H750 LL driver EXIT can not working, code is gen by CubeMX

  • August 29, 2020
  • 1 reply
  • 1438 views

STM32H750 

STM32CubeMX 6.0.1

STM32H FW 1.8

use LL driver, but the EXIT is not working.

use HAL driver , works ok

test on PC8 as EXIT

modify nothing, the code is gen by CubeMX

This topic has been closed for replies.

1 reply

waclawek.jan
Super User
August 29, 2020

You mean EXTI?

Read out and check/compare between working and non-working, content of relevant GPIO, SYSCFG and EXTI registers. Make sure you have enabled respective interrupt in NVIC and in disasm verify that respective ISR is properly inserted to the vector table.

JW

Davi
DaviAuthor
Associate II
August 29, 2020

yes EXTI.

Thanks very much. I have find the problem.

I think it is a bug of cubemx 6.0.1.

when I compare the code gen by cubemx 5.6, I find the problem.

In cubemx 6.0.1. GPIO LL driver mode.

the exti gpio is not set to input mode

gpio.c:

 GPIO_InitStruct.Pin = LL_GPIO_PIN_13|LL_GPIO_PIN_14|LL_GPIO_PIN_15|LL_GPIO_PIN_2

             |LL_GPIO_PIN_3;

 GPIO_InitStruct.Mode = LL_GPIO_MODE_INPUT;

 GPIO_InitStruct.Pull = LL_GPIO_PULL_NO;

 LL_GPIO_Init(GPIOC, &GPIO_InitStruct);

but, In gpio hal mode:

it will be set in input mode in gpio.c

Khouloud OTHMAN
Associate
September 7, 2020

Hello Davi,

Could you please share you .ioc file for further check ?

Thanks,

Regards,

Khouloud.