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 > Penclicks freezes DSLite

#100583 - Valmond - Mon Aug 28, 2006 9:08 pm

Hi everybody!

I'v got this little game I'm trying to program, and I just
added a Backpack & an Equipment screen.

I also got Icons to click to toggle those screens (you can also use buttons),
this works by changing tileset & map and stream the new tiles into VRAM.
(the screens are just tile-maps so I keep the same video mode).

The thing is that if I use a button (ex. push Y) to switch, it works well
(in emu and on hardware), with the pen though, the DS freezes (emulator
works okay).

I'v clicked like mad with the button, it works perfectly.
If I push the button and just click anywhere on the touchscreen, it freezes too.

Well, I came to the conclusion that I'm doing something bad when
the pen gets read but I'm kind of stuck here. I don't even
know if the read is made by an interrupt and/or if that takes
long time or whet else might crash because of VRAM copies...

BTW I'm not using DMA copy.


So if anyone has an idea of what might be crashing the program feel free
to share any thoughts :)


thanks

/Valmon
_________________
N?fer & LudLib

#100596 - josath - Mon Aug 28, 2006 10:07 pm

Try making the simplest program you can which uses the touchscreen, and see if that still crashes. If it does, post the code and people can take a look at it.

Many people have used the touchscreen before without crashing, so my guess is that there is a logical error in your code somewhere.

#100652 - Valmond - Tue Aug 29, 2006 9:24 am

Okay, I'll continue to search for my lil bug then :)


Thanks

/Valmond
_________________
N?fer & LudLib