Associate II
August 6, 2017
Solved
STM32CubeMx with STM32Cube_FW_L1_V1.7.0 produces wrong code.
- August 6, 2017
- 2 replies
- 872 views
Posted on August 06, 2017 at 19:22
Hello!!
I post an .IOC file that produces initialization code for Keil v5.
This file produced with 4.22 version of CubeMX and uses the latest firmaware for L1 family.
At module, gpio.c and especialy inside called function LL_SYSCFG_SetEXTISource(LL_AHB1_GRP1_PERIPH_GPIOA, LL_SYSCFG_EXTI_LINE0); , the first parameter,
LL_AHB1_GRP1_PERIPH_GPIOA
is not correct.Inside the module stm32l1xx_ll_system.h, contained the right parameters must put.
This parameter has value 0x01, but the correct LL_SYSCFG_EXTI_PORTA has value 0x00.
This cause problem to set the correct source of EXTI interrupts.
#ll #stm32cubemx