AnsweredAssumed Answered

STM32CubeMx  with STM32Cube_FW_L1_V1.7.0 produces wrong code.

Question asked by Vangelis Fortounas on Aug 6, 2017
Latest reply on Mar 5, 2018 by Jeanne Joly


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.