Skip to main content
kurta999
Senior
January 9, 2019
Solved

CubeMX 5.0.1 LL driver warning

  • January 9, 2019
  • 9 replies
  • 1900 views

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.
Best answer by kurta999

Fixed in L4 LL 1.14.0

9 replies

S.Ma
Principal
January 9, 2019

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
January 14, 2019

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

R Piacenzia
Associate II
January 29, 2019

Hi,

I am having this exact same issue.

Can ST comment on when this will be fixed?

Thanks.

kurta999
kurta999Author
Senior
March 2, 2019

Any news please?

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

Jungle
Associate
March 18, 2019

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
March 22, 2019

I'm using Atollic TrueStudio

kurta999
kurta999AuthorBest answer
Senior
April 26, 2019

Fixed in L4 LL 1.14.0

R Piacenzia
Associate II
July 3, 2019

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
July 5, 2019

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.