STM32F7 disco compilation error in rtc.c

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
hosk
Posts: 6
Joined: Sat Aug 15, 2015 9:49 am
Location: Ostrava

STM32F7 disco compilation error in rtc.c

Post by hosk » Fri Oct 30, 2015 9:38 pm

In module rtc.c is error on line 184:
for F7 disco must be:
PWR->CR1 |= PWR_CR1_DBP;

instead
PWR->CR |= PWR_CR_DBP;
Honza Sklenář

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

Re: STM32F7 disco compilation error in rtc.c

Post by dhylands » Fri Oct 30, 2015 10:17 pm

Looks like it just broke. I put together a PR: https://github.com/micropython/micropython/pull/1562

hosk
Posts: 6
Joined: Sat Aug 15, 2015 9:49 am
Location: Ostrava

Re: STM32F7 disco compilation error in rtc.c

Post by hosk » Sat Nov 07, 2015 10:42 am

Today the same mistake apeared. On line 214. :-(
Honza Sklenář

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

Re: STM32F7 disco compilation error in rtc.c

Post by dhylands » Sat Nov 07, 2015 5:46 pm

I opened a PR https://github.com/micropython/micropython/pull/1601 to fix that, and also opened an issue https://github.com/micropython/micropython/issues/1602 to get the STM32F7DISC added to the travis build, which should help to prevent this from happening again.

Post Reply