2019-01-09 06:43 AM
This warning present since I started to using low layer driver, it was around 2 -3 months before.
In file included from ../Core/Inc/main.h:70:0,
from ../Core/Inc/gpio.h:58,
from ..\Core\Src\gpio.c:51:
../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_ll_exti.h:127:0: warning: "LL_EXTI_LINE_18" redefined
#define LL_EXTI_LINE_18 EXTI_IMR1_IM18 /*!< Extended line 18 */
In file included from ../Core/Inc/stm32l4xx_hal_conf.h:400:0,
from ../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal.h:46,
from ../Core/Inc/main.h:61,
from ../Core/Inc/gpio.h:58,
from ..\Core\Src\gpio.c:51:
../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_pcd.h:459:0: note: this is the location of the previous definition
#define LL_EXTI_LINE_18 0x00040000U
Solved! Go to Solution.
2019-04-26 02:59 AM
Fixed in L4 LL 1.14.0
2019-01-09 07:15 AM
Got this with previous in CubeMX 4 as target dependent migrating from L496 to L4R
It seems not related to CubeMX version.
stm32l4xx_ll_exti.c
Warning[Pa181]: incompatible redefinition of macro "LL_EXTI_LINE_18" (declared at line 447 of "C:\***\STM32L4xx_HAL_Driver\Inc\stm32l4xx_ll_exti.h 127
stm32l4xx_hal_pcd.h")
Warning[Pa181]: incompatible redefinition of macro "LL_EXTI_LINE_20" (declared at line 451 of "C:\***\STM32L4xx_HAL_Driver\Inc\stm32l4xx_ll_exti.h 131
stm32l4xx_hal_pcd.h")
#ifndef LL_EXTI_LINE_18
#define LL_EXTI_LINE_18 0x00040000U
#endif
#ifndef LL_EXTI_LINE_20
#define LL_EXTI_LINE_20 0x00100000U
#endif
and
******************************************************************************
* @file stm32l4xx_ll_exti.h
* @author MCD Application Team
* @brief Header file of EXTI LL module.
******************************************************************************
* @attention
*
* <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
(...)
#if defined(EXTI_IMR1_IM18)
#define LL_EXTI_LINE_18 EXTI_IMR1_IM18 /*!< Extended line 18 */
#endif
2019-01-14 12:48 AM
Thanks for confirming, but that's nevermind. It's still a bug which needs to be fixed.
2019-01-29 10:10 AM
Hi,
I am having this exact same issue.
Can ST comment on when this will be fixed?
Thanks.
2019-03-02 08:16 AM
Any news please?
Tested with STM32CubeMX 5.1.0, everything is the same as before.
2019-03-18 04:31 AM
Do you use IAR? I've recently had similar warnings, and the problem was because 'Defined symbols' in the project options generated by CubeMX conflicted with the ones in *.h file.
2019-03-22 01:15 AM
I'm using Atollic TrueStudio
2019-04-26 02:59 AM
Fixed in L4 LL 1.14.0
2019-07-03 12:33 PM
Hi.
I'm using CubeMX 5.21 and latest L4 firmware V.14.0.
Keil MDK shows it is using L4 DFP 2.20 and LL driver versions 1.9.
How do I get the L4 LL 1.14.0 you reference?
Or with Keil do I need to wait for ST's next DFP release to have the fix?
Thanks.
2019-07-05 12:03 PM
I don't have any experience with Keil MDK, so I can't help with that.
But you can get the latest L4 package here ( https://www.st.com/en/embedded-software/stm32cubel4.html ) or via latest CubeMX.