Re: SD card file write
Posted: Sat Mar 04, 2017 4:07 am
Yeah.. it's 32 kHz, I need to check with scope on Monday.
Sent from my ONEPLUS A3000 using Tapatalk
Sent from my ONEPLUS A3000 using Tapatalk
Please see the new forum at
https://forum.micropython.org/
Code: Select all
BL>C
ClockDiagnostic
SYS:168000000 H:168000000, P1:42000000, P2:84000000
LSI:31264, LSE:32772
PLL Source
BL>C
ClockDiagnostic
SYS:168000000 H:168000000, P1:42000000, P2:84000000
LSI:31239, LSE:32769
PLL Source
Code: Select all
>>> import pyb, time, os
>>> rtc = pyb.RTC()
>>> rtc.info()
262147
>>> rtc.datetime((2014, 5, 1, 4, 13, 0, 0, 0))
>>> print(rtc.datetime())
(2000, 1, 1, 1, 0, 0, 0, 0)
>>> time.time()
0
>>>
>>>
Code: Select all
#if MICROPY_HW_ENABLE_RTC
if (first_soft_reset) {
rtc_init_start(true);
}
#endif
Code: Select all
#define PYB_LSE_TIMEOUT_VALUE 1000 // ST docs spec 2000 ms LSE startup, seems to be too pessimistic
#define PYB_LSI_TIMEOUT_VALUE 500 // this is way too pessimistic, typ. < 1ms
Only just seen this. Perhaps it explains why a couple of times I've had the experience of files being transmogrified to contain all 1s?dhylands wrote:If you're writing to the sdcard from pyboard, then you really need to make sure you disable USB Mass Storage, otherwise you will get file corruption from the PC also overwriting the data that the pyboard wrote.