Page 1 of 1

STM32F7 disco compilation error in rtc.c

Posted: Fri Oct 30, 2015 9:38 pm
by hosk
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;

Re: STM32F7 disco compilation error in rtc.c

Posted: Fri Oct 30, 2015 10:17 pm
by dhylands
Looks like it just broke. I put together a PR: https://github.com/micropython/micropython/pull/1562

Re: STM32F7 disco compilation error in rtc.c

Posted: Sat Nov 07, 2015 10:42 am
by hosk
Today the same mistake apeared. On line 214. :-(

Re: STM32F7 disco compilation error in rtc.c

Posted: Sat Nov 07, 2015 5:46 pm
by dhylands
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.