I'm quite new to chibios but I'm starting to love it I'm working with the stm32f3discovery board and started today to use the RTC. The stm32f3 has a rtc, but to get it to work with chibios, the platform.mk must be extended with the following lines:
PLATFORMSRC:
"${CHIBIOS}/os/hal/platforms/STM32/RTCv2/rtc_lld.c"
PLATFORMINC:
"${CHIBIOS}/os/hal/platforms/STM32/RTCv2"
I tested it with the stm32f3discovery. Maybe you want to update this in the official repository.
Best,
Florian
STM32F3 missing RTC support
Moderators: RoccoMarco, barthess
- Giovanni
- Site Admin
- Posts: 14458
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: STM32F3 missing RTC support
Hi,
Thanks for testing, I'll add those lines.
Edit: Changes committed, thanks.
Giovanni
Thanks for testing, I'll add those lines.
Edit: Changes committed, thanks.
Giovanni
Re: STM32F3 missing RTC support
Now that I'm playing around with it, there is one more thing missing:
If you want to use functions from chrtclib.c, you have to add the defines for STM32F30x (and probably STM32F37X) in chrtclib.c:
before:
#if (defined(STM32F4XX) || defined(STM32F2XX) || defined(STM32L1XX) || \
defined(STM32F1XX) || defined(STM32F10X_MD) || defined(STM32F10X_LD) || \
defined(STM32F10X_HD) || defined(LPC122X) || defined(__DOXYGEN__))
If you want to use functions from chrtclib.c, you have to add the defines for STM32F30x (and probably STM32F37X) in chrtclib.c:
before:
#if (defined(STM32F4XX) || defined(STM32F2XX) || defined(STM32L1XX) || \
defined(STM32F1XX) || defined(STM32F10X_MD) || defined(STM32F10X_LD) || \
defined(STM32F10X_HD) || defined(LPC122X) || defined(__DOXYGEN__))
- Giovanni
- Site Admin
- Posts: 14458
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Who is online
Users browsing this forum: No registered users and 9 guests