SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By nstn11e
#191570
(Oops, didn't want to up the post with my edits.)

Hello,

The OpenLog seems to reset (at least it executes its setup() anew) when an SD card is inserted. This is cool from the application point of view, but I do not understand how it does that. I don't see code attached to the <card detect> (CD) pin nor does I find code checking for the presence of the card...

If I understand correctly, the bootloader wipes off the MCUSR, so I can't get info on the reset from there.

I also looked at the 3V3 rail to see if a current inrush could trigger a brown-out on card insertion, but it stays quite stable (a dip of ~10% to ~3V).

I'm looking at the minimal version of the OpenLog firmware : https://github.com/sparkfun/OpenLog/blo ... inimal.ino, but the behavior is the same for the full version.

Hardware version: I can't determine the hardware version I have, but it is older than the current V1.5.

Firmware version: Both the current V H1.5 F4.0 and an older one (the one shipped with my 2-3 years old OpenLogs).

Anyone can help me to understand this ?

Thank you for reading and have a nice day !

--
nstn