Re: STM32C011 (WeAct) - first steps
Posted: Sun May 26, 2024 5:09 am
oh and for stm32f103 the rtc and 'bluepill' (or 'maple mini') type boards, I've used the RTC running on VBAT with the on board external crystal.
I've got a defective chip for one, but that for a normal working stm32f103c8 chip, the RTC keeps time for a long time > 1 year on a single cr2032 lithium battery.
But that because I've got a lousy crystal, the rtc drifts over time. It turns out manual drift adjustments
https://github.com/rogerclarkmelbourne/ ... /RTCAdjust
can bring that in line to a under a single minute (sometimes just bunch of seconds) over several months, not too bad for an on chip RTC running on cheap 32 k crystals.
https://www.aliexpress.com/w/wholesale-32768.html
the RTC matters if you are using SD-Fat and want to timestamp the files accordingly, e.g. for loggers etc.
but that SD-Fat makes for a complex, large development. flash and sram matters, I managed to get that running just well on stm32f103c8 on 'roger's (libmaple) core'
for 'roger's (libmaple) core', you'd either need to use the *old arduino IDE* i.e. 1.8 java based one. or find some alternative IDE that doesn't use boards manager.
or use a makefile.
viewtopic.php?t=37
I'm using makefiles with eclipse IDE (normal eclipse with CDT, no other addons)
For a new project / sketch, copy that whole project into a new folder and edit the makefile.
the makefiles is linux based, on windows use WSL
https://learn.microsoft.com/en-us/windows/wsl/install
I've got a defective chip for one, but that for a normal working stm32f103c8 chip, the RTC keeps time for a long time > 1 year on a single cr2032 lithium battery.
But that because I've got a lousy crystal, the rtc drifts over time. It turns out manual drift adjustments
https://github.com/rogerclarkmelbourne/ ... /RTCAdjust
can bring that in line to a under a single minute (sometimes just bunch of seconds) over several months, not too bad for an on chip RTC running on cheap 32 k crystals.
https://www.aliexpress.com/w/wholesale-32768.html
the RTC matters if you are using SD-Fat and want to timestamp the files accordingly, e.g. for loggers etc.
but that SD-Fat makes for a complex, large development. flash and sram matters, I managed to get that running just well on stm32f103c8 on 'roger's (libmaple) core'
for 'roger's (libmaple) core', you'd either need to use the *old arduino IDE* i.e. 1.8 java based one. or find some alternative IDE that doesn't use boards manager.
or use a makefile.
viewtopic.php?t=37
I'm using makefiles with eclipse IDE (normal eclipse with CDT, no other addons)
For a new project / sketch, copy that whole project into a new folder and edit the makefile.
the makefiles is linux based, on windows use WSL
https://learn.microsoft.com/en-us/windows/wsl/install