Search found 37 matches

by kbrenner
Thu Feb 18, 2021 3:50 pm
Forum: General Discussion and Questions
Topic: machine.RTC().datetime() gives incorrect hours, minutes, and day of the week
Replies: 9
Views: 500

Re: machine.RTC().datetime() gives incorrect hours, minutes, and day of the week

Got it. So is there any way to get the actual datetime then in between power cycles (outside of providing VBAT power with a coin cell or equivalent)? Due to other constraints, I don't have the ability to include an additional coin cell just to power VBAT. I could add code to the boot.py which would ...
by kbrenner
Thu Feb 18, 2021 2:27 am
Forum: General Discussion and Questions
Topic: machine.RTC().datetime() gives incorrect hours, minutes, and day of the week
Replies: 9
Views: 500

Re: machine.RTC().datetime() gives incorrect hours, minutes, and day of the week

Through trial and error, I've found that removing power to the pyboard and then plugging it back into the computer via microUSB is what is causing the time to reset. Simply hitting CTRL-D does not cause that to happen. Do either of you have any idea why this is occurring?
by kbrenner
Tue Feb 16, 2021 12:39 am
Forum: General Discussion and Questions
Topic: machine.RTC().datetime() gives incorrect hours, minutes, and day of the week
Replies: 9
Views: 500

Re: machine.RTC().datetime() gives incorrect hours, minutes, and day of the week

I have started to notice that the call to the function:

utime.localtime() is now reporting the following value:

>>> utime.localtime()
(2015, 1, 1, 0, 44, 11, 3, 1)

I am not sure why it reset itself to the first day of the year in 2015. Do you have any idea why this is happening?
by kbrenner
Wed Jan 27, 2021 3:16 pm
Forum: Pyboard D-series
Topic: firmware build appended with "dirty", no longer allowing CTRL-D to work
Replies: 2
Views: 256

Re: firmware build appended with "dirty", no longer allowing CTRL-D to work

davef wrote:
Wed Jan 27, 2021 2:32 am
viewtopic.php?f=2&t=8992
Maybe this helps.
Thank you. I actually wasn't using Git for my code, but instead, I just found a clean backup copy of the code and copied it over and it solved the problem.
by kbrenner
Wed Jan 27, 2021 2:00 am
Forum: Pyboard D-series
Topic: firmware build appended with "dirty", no longer allowing CTRL-D to work
Replies: 2
Views: 256

firmware build appended with "dirty", no longer allowing CTRL-D to work

Hi, I'm running a PYBD SF6W with V1.13 firmware. Recently, CTRL-D stopped rebooting the pyboard properly. I checked boot.py, and it is untouched/uncorrupted. However, I am receiving the following print out for the firmware version: MicroPython Error.PNG What does it mean to have the word "dirty" app...
by kbrenner
Wed Jan 20, 2021 10:10 pm
Forum: General Discussion and Questions
Topic: machine.RTC().datetime() gives incorrect hours, minutes, and day of the week
Replies: 9
Views: 500

Re: machine.RTC().datetime() gives incorrect hours, minutes, and day of the week

I know rshell has a bunch of code to deal with the various RTC's: https://github.com/dhylands/rshell/blob/aae27f5b39af428982eec81a0b90fdea6e191669/rshell/main.py#L951 It looks like the arguments to datetime are expected to be in the following order: (year, month, day, weekday, hour, minute, second,...
by kbrenner
Wed Jan 20, 2021 9:01 pm
Forum: General Discussion and Questions
Topic: machine.RTC().datetime() gives incorrect hours, minutes, and day of the week
Replies: 9
Views: 500

machine.RTC().datetime() gives incorrect hours, minutes, and day of the week

Upon setting the datetime with machine.RTC().datetime(), the hours, minutes, and day of the week appear to be reading incorrect values:
machine.RTC().datetime().PNG
machine.RTC().datetime().PNG (7 KiB) Viewed 500 times
Does anyone know why this happens?
by kbrenner
Mon Jan 11, 2021 3:00 am
Forum: Pyboard D-series
Topic: ENOMEM error
Replies: 5
Views: 1315

ENOMEM error

I am using a PYBD-SF6W and am running into an error while sending BLE messages. The REPL prompt just gets flooded with the following messages: ENOMEM error.PNG Does anyone know where these get generated? If there isn't a way right now to avoid them, is there a way to recognize that the error is occu...
by kbrenner
Mon Jan 11, 2021 1:56 am
Forum: Pyboard D-series
Topic: Unable to write numpy arrays to '.txt' or '.DAP' files on SD
Replies: 5
Views: 779

Re: Unable to write numpy arrays to '.txt' or '.DAP' files on SD

Does anyone have an idea as to why this might be happening? My understanding is that f.write(data) should attempt to call mp_get_buffer_raise on the ulab array type. To isolate the problem, can you try doing import ulab as np data = np.zeros((3,3)) buf = bytes(data) print(buf) That will at least ch...