cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX 5.0.1 LL driver warning

kurta999
Senior

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

1 ACCEPTED SOLUTION

Accepted Solutions
kurta999
Senior

Fixed in L4 LL 1.14.0

View solution in original post

9 REPLIES 9
S.Ma
Principal

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
Senior

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

R Piacenzia
Associate III

Hi,

I am having this exact same issue.

Can ST comment on when this will be fixed?

Thanks.

kurta999
Senior

Any news please?

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

Jungle
Associate II

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
Senior

I'm using Atollic TrueStudio

kurta999
Senior

Fixed in L4 LL 1.14.0

R Piacenzia
Associate III

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
Senior

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.