gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > libnds Real Time Counter not working on R4? ._.

#130389 - royconejo - Sat Jun 02, 2007 10:45 pm

Hello =)!

I've compiled all the examples with DevKitPro r20 and tested every one of them on R4DS. Calls to the RTC are not working at all. Everything else is just fine.

I see this problem specifically in:

RealTimeClock/Watch (RTC used to display h/m/s), I get the following:

0:0:0am
(null) 0 2000

Graphics/3D/BoxTest (RTC used for profiling), this is the only output I can get:

Box test cycle count
[...and nothing else below]

This behavior is normal on R4? there is any workaround?


Thanks for your help! ^^

#130410 - gabebear - Sun Jun 03, 2007 2:22 am

This is probably related to the IPC overhaul... I don't know if the IPC is usable yet. Since only the ARM7 has access to the RTC, you have to use the IPC(Inter-Process Communication) to access the RTC from an ARM9 program.

#130416 - wintermute - Sun Jun 03, 2007 3:37 am

Currently the RTC is not accessible with a standard ARM7 core, this will change soon(ish)
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#130422 - royconejo - Sun Jun 03, 2007 6:50 am

wintermute wrote:
Currently the RTC is not accessible with a standard ARM7 core, this will change soon(ish)


Thanks!

I see, this is a problem specifically related to the current version of libnds, right? (and if so, why there are examples for something not implemented yet? .__.)

And... how was it done before this new "IPC" thing? =)?

So I have to read the RTC from ARM7 and implement some sort of "communication" between this and the ARM9 to read the results from there? what is missing on libnds for this to happen? can I help somehow? I'm very (extremely xD) new to DS development but not to programming or ARM microcontrollers, just need a little background on whats going on and thats it! =P

Thanks again =)!