Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4700

General • Apparent issue found with Always-On Timer on the RP2350

$
0
0
I am the primary developer of zeptoforth, a Forth implementation that supports the RP2040 amongst other things, and which is in alpha for the RP2350 (https://github.com/tabemann/zeptoforth/ ... .0-alpha.0, the source code is in https://github.com/tabemann/zeptoforth/ ... .0-alpha.0). When testing for the RP2350 I found a strange issue: when I reboot my Raspberry Pi Pico 2, the time stored by the Always-On Timer goes backwards in time. Note that this is using a layer which emulates part of the functionality of the RTC provided by the RP2040 by converting between milliseconds since 1970-01-01 00:00:00 stored in the Always-On Timer and human-usable dates. Also note that the layer does not hold any state ─ it reads the current time in milliseconds from the Always-On Timer every time the time is read.

This can be seen in the below:

Code:

2024 08 30 13 27 00 rtc::simple-date-time!  oks" TEST/BOOTTIME.FS" included compile-to-flashmarker erase-boottime: show-date-time ( -- )  rtc::date-time-size [: { date-time }    date-time rtc::date-time@    date-time rtc::date-time.  ;] with-aligned-allot;: turnkey ( -- ) show-date-time ; okshow-date-time Fri, 30 Aug 2024 13:27:11 ok

Code:

Fri, 30 Aug 2024 13:27:01Welcome to zeptoforthBuilt for rp2350, version 1.8.0-alpha.0, on Thu Aug 29 07:17:22 PM CDT 2024zeptoforth comes with ABSOLUTELY NO WARRANTY: for details type `license' ok

Code:

Fri, 30 Aug 2024 13:27:00Welcome to zeptoforthBuilt for rp2350, version 1.8.0-alpha.0, on Thu Aug 29 07:17:22 PM CDT 2024zeptoforth comes with ABSOLUTELY NO WARRANTY: for details type `license' ok

Code:

Fri, 30 Aug 2024 13:27:00Welcome to zeptoforthBuilt for rp2350, version 1.8.0-alpha.0, on Thu Aug 29 07:17:22 PM CDT 2024zeptoforth comes with ABSOLUTELY NO WARRANTY: for details type `license' ok

Code:

Fri, 30 Aug 2024 13:27:00Welcome to zeptoforthBuilt for rp2350, version 1.8.0-alpha.0, on Thu Aug 29 07:17:22 PM CDT 2024zeptoforth comes with ABSOLUTELY NO WARRANTY: for details type `license' ok

Code:

Fri, 30 Aug 2024 13:27:00Welcome to zeptoforthBuilt for rp2350, version 1.8.0-alpha.0, on Thu Aug 29 07:17:22 PM CDT 2024zeptoforth comes with ABSOLUTELY NO WARRANTY: for details type `license' ok

Code:

Fri, 30 Aug 2024 13:27:00Welcome to zeptoforthBuilt for rp2350, version 1.8.0-alpha.0, on Thu Aug 29 07:17:22 PM CDT 2024zeptoforth comes with ABSOLUTELY NO WARRANTY: for details type `license' ok

Code:

Fri, 30 Aug 2024 13:27:00Welcome to zeptoforthBuilt for rp2350, version 1.8.0-alpha.0, on Thu Aug 29 07:17:22 PM CDT 2024zeptoforth comes with ABSOLUTELY NO WARRANTY: for details type `license' okshow-date-time Fri, 30 Aug 2024 13:27:08 ok

Code:

Fri, 30 Aug 2024 13:27:00Welcome to zeptoforthBuilt for rp2350, version 1.8.0-alpha.0, on Thu Aug 29 07:17:22 PM CDT 2024zeptoforth comes with ABSOLUTELY NO WARRANTY: for details type `license' ok

Statistics: Posted by tabemann — Fri Aug 30, 2024 6:39 pm — Replies 4 — Views 117



Viewing all articles
Browse latest Browse all 4700

Trending Articles