Skip to main content
kurta999
Senior
Jan 9, 2019 2:43 PM UTC
Solved

CubeMX 5.0.1 LL driver warning

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

This topic has been closed for replies.
kurta999
kurta999Best answer
Senior
Apr 26, 2019 9:59 AM UTC

Fixed in L4 LL 1.14.0

9 replies

S.Ma
Principal
Jan 9, 2019 3:15 PM UTC

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>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
(...)
 
#if defined(EXTI_IMR1_IM18)
#define LL_EXTI_LINE_18 EXTI_IMR1_IM18 /*!< Extended line 18 */
#endif

kurta999
kurta999Author
Senior
Jan 14, 2019 8:48 AM UTC

Thanks for confirming, but that's nevermind. It's still a bug which needs to be fixed.

R Piacenzia
Associate II
Jan 29, 2019 6:10 PM UTC

Hi,

I am having this exact same issue.

Can ST comment on when this will be fixed?

Thanks.

kurta999
kurta999Author
Senior
Mar 2, 2019 4:16 PM UTC

Any news please?

Tested with STM32CubeMX 5.1.0, everything is the same as before.

Jungle
Associate
Mar 18, 2019 11:31 AM UTC

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.

kurta999
kurta999Author
Senior
Mar 22, 2019 8:15 AM UTC

I'm using Atollic TrueStudio

kurta999
kurta999AuthorBest answer
Senior
Apr 26, 2019 9:59 AM UTC

Fixed in L4 LL 1.14.0

R Piacenzia
Associate II
Jul 3, 2019 7:33 PM UTC

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.

kurta999
kurta999Author
Senior
Jul 5, 2019 7:03 PM UTC

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.