STM32F411CE (aka BlackPill) Build error: rtc.c:153:17: error: implicit declaration of function

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
Neurotoxin
Posts: 1
Joined: Fri Dec 11, 2020 8:31 pm

STM32F411CE (aka BlackPill) Build error: rtc.c:153:17: error: implicit declaration of function

Post by Neurotoxin » Fri Dec 11, 2020 8:43 pm

Нelp me please

I suffer for several days trying to build micropython
Build ends with error:

rtc.c: In function 'rtc_init_start':
rtc.c:153:17: error: implicit declaration of function 'LL_RTC_GetSynchPrescaler' [-Werror=implicit-function-declaration]
153 | if (LL_RTC_GetSynchPrescaler(RTC) != RTC_SYNCH_PREDIV
| ^~~~~~~~~~~~~~~~~~~~~~~~
rtc.c:154:20: error: implicit declaration of function 'LL_RTC_GetAsynchPrescaler' [-Werror=implicit-function-declaration]
154 | || LL_RTC_GetAsynchPrescaler(RTC) != RTC_ASYNCH_PREDIV) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
rtc.c:156:17: error: implicit declaration of function 'LL_RTC_DisableWriteProtection' [-Werror=implicit-function-declaration]
156 | LL_RTC_DisableWriteProtection(RTC);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rtc.c:157:17: error: implicit declaration of function 'LL_RTC_EnableInitMode'; did you mean 'RTC_EnterInitMode'? [-Werror=implicit-function-declaration]
157 | LL_RTC_EnableInitMode(RTC);
| ^~~~~~~~~~~~~~~~~~~~~
| RTC_EnterInitMode
rtc.c:160:25: error: implicit declaration of function 'LL_RTC_IsActiveFlag_INIT' [-Werror=implicit-function-declaration]
160 | if (LL_RTC_IsActiveFlag_INIT(RTC)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~
rtc.c:162:25: error: implicit declaration of function 'LL_RTC_SetSynchPrescaler' [-Werror=implicit-function-declaration]
162 | LL_RTC_SetSynchPrescaler(RTC, RTC_SYNCH_PREDIV);
| ^~~~~~~~~~~~~~~~~~~~~~~~
rtc.c:163:25: error: implicit declaration of function 'LL_RTC_SetAsynchPrescaler' [-Werror=implicit-function-declaration]
163 | LL_RTC_SetAsynchPrescaler(RTC, RTC_ASYNCH_PREDIV);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
rtc.c:164:25: error: implicit declaration of function 'LL_RTC_DisableInitMode' [-Werror=implicit-function-declaration]
164 | LL_RTC_DisableInitMode(RTC);
| ^~~~~~~~~~~~~~~~~~~~~~
rtc.c:168:17: error: implicit declaration of function 'LL_RTC_EnableWriteProtection' [-Werror=implicit-function-declaration]
168 | LL_RTC_EnableWriteProtection(RTC);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [../../py/mkrules.mk:77: build-WeAct_F411CE/rtc.o] Error 1

The same error occurred when building circuitpython, then I got around it by writing something like MYCROPY_RTC = 0 in mpconfigboard.mk, but it doesn't work here

User avatar
dhylands
Posts: 3504
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: STM32F411CE (aka BlackPill) Build error: rtc.c:153:17: error: implicit declaration of function

Post by dhylands » Mon Dec 14, 2020 2:16 am

This looks like the board files are out of date.

See this thread here: viewtopic.php?f=3&t=9417

Post Reply