Page 1 of 1
RTC Backup Registers and Backup SRAM
Posted: Thu Feb 20, 2014 10:21 am
by Tabulous
On the F4 there is 20 words of RTC Backup and 4K of Backup SRAM.
Is there any info on using this under Chiobios ?
One thing that comes to mind is to wrtie to regions you need to enable backup commands i.e. PWR_BackupAccessCmd(ENABLE);
Are there macros in Chibios that do the same as this ?
Re: RTC Backup Registers and Backup SRAM
Posted: Thu Feb 20, 2014 10:35 am
by Giovanni
Currently there is not a dedicated PWR module support, access to PWR are done at register level where needed.
Giovanni
Re: RTC Backup Registers and Backup SRAM
Posted: Thu Feb 20, 2014 11:51 am
by Tabulous
i could create one, based around the same format as the stm32_rcc.h ?
Re: RTC Backup Registers and Backup SRAM
Posted: Thu Feb 20, 2014 12:12 pm
by Giovanni
It could be an idea, stm32_xxxxx.h files are "helper drivers".
I am not sure if it would be compatible with all sub-families, it is possible we would need one for each sub-family (like the RCC one).
Giovanni
Re: RTC Backup Registers and Backup SRAM
Posted: Thu Feb 20, 2014 12:23 pm
by Tabulous
Giovanni wrote:It could be an idea, stm32_xxxxx.h files are "helper drivers".
I am not sure if it would be compatible with all sub-families, it is possible we would need one for each sub-family (like the RCC one).
Giovanni
Thats what i was thinking, but i'll do F4 first as this is of most interest to me
