STM32F7 hal_lld - STM32_LSEDRV

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
Post Reply
neums
Posts: 137
Joined: Fri May 08, 2015 1:09 pm
Has thanked: 10 times
Been thanked: 5 times

STM32F7 hal_lld - STM32_LSEDRV

Post by neums »

Hi,
i do not use the LSE. So i disabled it in mcuconf.h. Futhermore i do not define STM32_LSEDRV in board.h because i do not need it. The problem is now that the percompiler throws an error in hal_lld.h because the error check is not within #if STM32_LSE_ENABLED as implemented in the hal_lld.h of the STM32F3.

Is this a bug or a misshandling?

Thanks
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32F7 hal_lld - STM32_LSEDRV

Post by Giovanni »

Hi,

Those macros are assumed to be provided by the board files regardless of mcuconf.h settings.

The generator should generate those, are you creating board files manually?

Giovanni
neums
Posts: 137
Joined: Fri May 08, 2015 1:09 pm
Has thanked: 10 times
Been thanked: 5 times

Re: STM32F7 hal_lld - STM32_LSEDRV

Post by neums »

OK, i think my version is not the newest. It's not generated. I have to update the toolchain. Nevertheless the STM32_LSEDRV is checked for STM32_LSE_ENABLED with other ports (STM32F3).

Thanks
Post Reply