Цитата(Serj78 @ Dec 14 2010, 11:55)

А что включают ваши функции? (какие биты в каких регистрах)
Это функции из ST-шной библиотеки. Я особо над ними не заморачивался, выдернул из примера и вставил в свою прогу.
а вообще в Reference Manual написано
Цитата
After reset, access to the Backup registers and RTC is disabled and the Backup domain
(BKP) is protected against possible parasitic write access. To enable access to the Backup
registers and the RTC, proceed as follows:
● enable the power and backup interface clocks by setting the PWREN and BKPEN bits
in the RCC_APB1ENR register
● set the DBP bit the Power Control Register (PWR_CR) to enable access to the Backup
registers and RTC.
Соответственно у Вас закралась ошибка и скорее всего должно быть так
RCC->APB1ENR|=(1<<27)|(1<<28); // включили тактирование BKP и PWR