So this will require some digging or someone who knows will just tell me.
I'm trying to set the system clock on the RP2350 now I looked this up and RP2040 has the RTC, RP2350 has AON Timer. So I used the aon_set_time() function or whatever it is and then I go to lua and check to be sure the time and date set correctly.... Nope still just after Epoch so I use the C function settimeofday(), well now the time is set. This is interesting because setting the RTC on the RP2040 using Lua to read the clock works. (or does it I don't remember if there was an issue here.) anyways I need to make some changes to New Lib hooks for getting and setting the clock maybe? seems like it should be using the AON library for the clock but if it's not how is the clock working then what is it doing?
I'm going to have dig for the answer in the SDK I can sense it.
I'm trying to set the system clock on the RP2350 now I looked this up and RP2040 has the RTC, RP2350 has AON Timer. So I used the aon_set_time() function or whatever it is and then I go to lua and check to be sure the time and date set correctly.... Nope still just after Epoch so I use the C function settimeofday(), well now the time is set. This is interesting because setting the RTC on the RP2040 using Lua to read the clock works. (or does it I don't remember if there was an issue here.) anyways I need to make some changes to New Lib hooks for getting and setting the clock maybe? seems like it should be using the AON library for the clock but if it's not how is the clock working then what is it doing?
I'm going to have dig for the answer in the SDK I can sense it.
Statistics: Posted by DarkElvenAngel — Tue Sep 23, 2025 12:36 am