Real Time Clock on STM32F4 - Beta Firmware and Drivers - Netduino Forums
   
Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Real Time Clock on STM32F4


  • Please log in to reply
5 replies to this topic

#1 wanchp

wanchp

    New Member

  • Members
  • Pip
  • 3 posts

Posted 28 February 2013 - 09:22 AM

Since the hardware resource of STM32F4 includes calendar RTC with a dedicated power pin for that.  I'll be nice if the next netduino supports on-chip RTC.



#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 01 March 2013 - 12:13 AM

Hi wanchp, We're hoping that Arduino uses the "empty pin" on the new R3 pinout as a VBAT pin. The reason we don't expose the RTC is because there's no power pin suitable for it on the Arduino pinout. It would also increase the price of the boards a little bit. We considered using the now-empty "AREF" pin as a "VBAT" pin instead...but then you'd risk electrocuting your board simply by plugging in an Arduino shield which feeds a 5V AREF to that pin. Chris

#3 wanchp

wanchp

    New Member

  • Members
  • Pip
  • 3 posts

Posted 03 March 2013 - 03:15 PM

Hi Chris,

 

On the current Netduino+2, VBAT pin of STM32F4 is tied up with the VDD. Though nothing can prevent you from developing on-chip RTC drivers. You may start with ST's AN3371, RTC firmware driver API. 

 

On the next Netduino+(3?),  you may add a 3V button battery or a supercap to keep on the time. There is no need to increase short-circuit risk.

 

Wanchp



#4 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 05 March 2013 - 07:37 AM

Hi Wanchp,

On the current Netduino+2, VBAT pin of STM32F4 is tied up with the VDD. Though nothing can prevent you from developing on-chip RTC drivers. You may start with ST's AN3371, RTC firmware driver API.

If you wanted to play around with the low-level RTC code you can. I'm not sure how accurate the time would be though--without an external 32.768KHz crystal. It might be good for wakeup events and such though.

On the next Netduino+(3?), you may add a 3V button battery or a supercap to keep on the time. There is no need to increase short-circuit risk.

That would be cool. There may not be enough room on Netduino Plus...but if there's enough demand, we could create a special Netduino with onboard supercap or battery. Great feedback!

Chris

#5 neslekkim

neslekkim

    Advanced Member

  • Members
  • PipPipPip
  • 350 posts
  • LocationOslo, Norway

Posted 05 March 2013 - 07:56 AM

an place to solder pins would help also I guess, it would be up to the user to add them, maybe one need an solderbridge if not using them, but still. (Teensy does similar things)


--
Asbjørn


#6 wanchp

wanchp

    New Member

  • Members
  • Pip
  • 3 posts

Posted 08 March 2013 - 04:46 AM

Hi Wanchp,If you wanted to play around with the low-level RTC code you can. I'm not sure how accurate the time would be though--without an external 32.768KHz crystal. It might be good for wakeup events and such though.That would be cool. There may not be enough room on Netduino Plus...but if there's enough demand, we could create a special Netduino with onboard supercap or battery. Great feedback! Chris

You are right, the time running on the internal rc clock source is not accurate.  However, if one connect to the net from time to time, the precise time can be read from an ntp server.

 

Neslekkim is right, you can just provide a few solder pads/poles for 32kHz OSC and a supercap but pins for OSC32-IN and OSC32-OUT are now occupied.

 

Chris, I am a novice here, if I really want to play with low level hardware like RTC, do I have to customize the .net micro framework or your netduino firmware or both?  Can you point out a good starting point? 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.