STM32F107 demo build fails - bug ID: 3294998

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
Jacon
Posts: 143
Joined: Wed Dec 08, 2010 7:52 am
Has thanked: 50 times
Been thanked: 5 times

STM32F107 demo build fails - bug ID: 3294998

Post by Jacon »

Hello Giovanni,

Sorry to say that, but this bug is not rectified, as you confirmed in bug tracker,
especially in last stable version 2.2.4. :o

Missing "STM32_PLLXTPRE" parameter, as mentioned by Mathias there, was a result,
not a reason for this bug!

The real reason is excessive "defined(STM32F10X_CL)" parameter
in 89'th line of "hal/platforms/STM32/hal_lld.c" file.

Due this, clock configuration for CL line is processed as for all other STM32 lines,
which is definitely wrong.
Removing it clears everything up :D

Regards
Jacek
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32F107 demo build fails - bug ID: 3294998

Post by Giovanni »

Hi Jacek,

Thanks for reporting this, apparently I fixed it in the unstable version and failed to backport the change into the stable version. I will reopen the ticket, it will be fixed in 2.2.5.

In the meanwhile users of the stable version may change lines 86-89 as follow:

Code: Select all

#if defined(STM32F10X_LD) || defined(STM32F10X_LD_VL) ||                    \
    defined(STM32F10X_MD) || defined(STM32F10X_MD_VL) ||                    \
    defined(STM32F10X_HD) || defined(STM32F10X_XL) ||                       \
    defined(__DOXYGEN__)


Giovanni
Post Reply