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 > ez-5 and dslink reset test

#120390 - Lick - Sat Mar 03, 2007 3:37 pm

Hey, I am trying to add DSLink reset code to libcartreset. I found the code in EZ-5's modified Moonshell, it's not in the regular Moonshell though.
Anyway, the test .nds file is here, and the source.

EZ-5 and DSLink users: please run it and press B.

Thanks,
- Lick
_________________
http://licklick.wordpress.com

#120391 - Diddl - Sat Mar 03, 2007 4:08 pm

on dslink this code only shows two white screens and nothing more.

#120394 - Lick - Sat Mar 03, 2007 4:41 pm

Diddl: Did you press B?

I think I did something incorrect with the addresses. I changed it in version 2. Please try this one as well.
2nds
2source

Thanks!
_________________
http://licklick.wordpress.com

#120397 - Diddl - Sat Mar 03, 2007 5:10 pm

same result with test 2, - two white screens only.

I have a NDS lite (magenta screen version) lite with flashme 7


I tried key B, I tried all keys, but only white.

you know DLDI for DS Link doesn't work (doesn't initialize)? I have made new one which works fine (without reset).

#120399 - Lick - Sat Mar 03, 2007 5:48 pm

Here is number 3. nds

This file isn't even DLDI, by the way. It is simply the reset code that I'm trying to test.

Thanks!
_________________
http://licklick.wordpress.com

#120419 - Diddl - Sat Mar 03, 2007 7:33 pm

no message, - nothing, test 3 same result, 2 white screens.

#120470 - Lick - Sun Mar 04, 2007 12:50 am

Sorry for the three disappointments. ;) Anyway, here is number 4.

Press B, I programmed it so the screen color changes before the reset code is run.

Fingers crossed..
_________________
http://licklick.wordpress.com

#120542 - Diddl - Sun Mar 04, 2007 4:07 pm

no problem, I like to test.

this time comes white screen on both display. by pressing B after a short duration (50 - 100 ms) both screens get a light blue color. then nothing more.

#120696 - Lick - Mon Mar 05, 2007 5:09 pm

number 5. You need to patch it with DLDI first.
Code:
dlditool DLMS.dldi dlinkreset5.nds

_________________
http://licklick.wordpress.com

#120711 - Diddl - Mon Mar 05, 2007 6:53 pm

Lick wrote:
You need to patch it with DLDI first.


I understand, I haven't patched bevore. None of your tests, maybe this was the problem?

Which DLDI file I should use. Original DLDI from Chishm DLDI homepage doesn't work for me.

I have made a own DLDI which works fine on my DS Link v1.70. But this one has no reset function??

#120712 - Diddl - Mon Mar 05, 2007 6:58 pm

ok!! works fine with my DLDI file.

first white screens. after pressing B a short moment both screens will be light blue. after this white again for a second. then NDS restarts as after switch on.

thank you! can I have the source code? this will be very fine feature for developing and it spares my power switch ...



##

I see. test 5 is the one with DLDI section, all other tests doesn't have one.

#120714 - Lick - Mon Mar 05, 2007 7:20 pm

I will build another test that you have to patch again, this time it will use my own code. :)
_________________
http://licklick.wordpress.com

#120736 - Lick - Mon Mar 05, 2007 9:34 pm

number 6. No need to patch.

I inserted DLMS startUp() and replaced the reset asm with my own reset C. Please test if it still resets. I hope it does :(
_________________
http://licklick.wordpress.com

#120742 - Diddl - Mon Mar 05, 2007 10:11 pm

same as test 4. first white screens, after B light blue screens ...

#120743 - Lick - Mon Mar 05, 2007 10:15 pm

Okay, really thanks for the testing! It's number 7 already. No need to patch.
_________________
http://licklick.wordpress.com

#120744 - Diddl - Mon Mar 05, 2007 10:18 pm

same. blue screens hangs after B.

#120746 - Lick - Mon Mar 05, 2007 10:31 pm

Lick wrote:
Okay, really thanks for the testing! It's number 8 already. No need to patch.

_________________
http://licklick.wordpress.com

#120748 - Diddl - Mon Mar 05, 2007 10:37 pm

doesnt work this test 8.

look at my patched DLDI. Working DS Linker DLDI: DLDI :: Source

#120751 - Lick - Mon Mar 05, 2007 10:45 pm

It's really weird.

libfat + your DLDI -> fatInitDefault() -> reset() = OKAY!

your DLDI code copied over -> reset() = FAIL

:(
_________________
http://licklick.wordpress.com

#120752 - Lick - Mon Mar 05, 2007 10:51 pm

Okay, the last test for today. This is none of my own code (sigh..) but it should work and I'll just modify it bit by bit tomorrow.

Thanks for your amazing test job!
- Lick
_________________
http://licklick.wordpress.com

#120754 - Diddl - Mon Mar 05, 2007 10:59 pm

no, I'm sorry. don't work.

fine, read you tomorrow. if you have new test I will test again.

#120761 - Lick - Mon Mar 05, 2007 11:47 pm

Number 10: 10a | 10b | 10c | 10d | 10e

Thanks a lot!
- Lick
_________________
http://licklick.wordpress.com

#120769 - Diddl - Tue Mar 06, 2007 12:23 am

10a, b and c works fine.

10d, e works only with 2 times B. first time gives blue screen but after 500ms white again. on second B it resets fine to ds link menu.

#120772 - Diddl - Tue Mar 06, 2007 12:35 am

additional remark:

better as all this 10x versions runs this test 5, cause blue screen comes only for very short time. so whole reset is the fastest.

#120818 - Lick - Tue Mar 06, 2007 8:31 am

Nice.. I will look into the difference between the first 3 and last 2.

What if you boot d or e, wait a few seconds, before you press B? Is pressing 2 times still necessary that way?
_________________
http://licklick.wordpress.com

#120825 - Diddl - Tue Mar 06, 2007 9:13 am

I have waited some seconds and repeated many times. I believe it need a second B. But I will test it again when I come from work at evening.

#120849 - Diddl - Tue Mar 06, 2007 7:18 pm

tested it again. but same result. test d and e need a second time pressing B. i have waitet a long time ...

ir seems go back to same state as after start of program (white screens). but on second time it resets into ds link menu.

#120860 - Lick - Tue Mar 06, 2007 9:20 pm

reboot.nds (patch with DLDI first)

This file is based on 10e. It will automatically reboot (or show a red failure screen and hang).
Thanks for all the testing! (More than 15 now..)

- Lick
_________________
http://licklick.wordpress.com

#120865 - Diddl - Tue Mar 06, 2007 9:56 pm

sorry - hangs with "blue screen"


for short moment comes a white screen, after this a short black screen, and then hangs with light blue

#120935 - Lick - Wed Mar 07, 2007 12:35 pm

Okay, as it seems.. The devicetype ("DLMS") is not being recognized, hence the light blue screen.
Does your dldi specify "DLMS" as devicetype?

Oh and I have defined it like this:
Code:
#define DEVICE_DLMS        (0x534D4C44)

That's the correct hex-value for "DLMS" right? (Just in case..)
_________________
http://licklick.wordpress.com

#120937 - Diddl - Wed Mar 07, 2007 1:15 pm

I'm at work, so I can look at the evening.

But I have posted sources too.

one moment, I don't patch it with DLDI file? should I?

#120938 - Lick - Wed Mar 07, 2007 1:54 pm

Yes.. Note the "(patch with DLDI first)" in my earlier post. :D
_________________
http://licklick.wordpress.com

#120940 - Diddl - Wed Mar 07, 2007 1:59 pm

oh sorry, havn't seen this, cause previous tests was without testing. will test later again.

in a few days I also can test with EZ flash V ...

#120942 - Lick - Wed Mar 07, 2007 2:09 pm

Thanks, hopefully your answer will be positive so I can rest my mind off the DS Link rebooting!
As for EZ-Flash 5, I think it won't work the same way as DS Link. I need to do some more research first.
_________________
http://licklick.wordpress.com

#120951 - Diddl - Wed Mar 07, 2007 5:35 pm

it works fine! I only forgot to patch the DLDI file.


EZ flash V won't work same way, it is a TF card based slot 1 solution. IO sources and DLDI are available. Additionally I have ordered the EZ flash V extension. It's a trimode slot 2 solution (GBA support, browser RAM extension, rumble).

GBA games are stored on EZ flash V TF card and shown in normal menu with other games and homebrew. If you choose a GBA game, it will be copied to slot 2 and started immedeatly.


I already had a EZ flash V for one day. Then my niece comes for a visit and saw it. She begged to give it her.

#120969 - Lick - Wed Mar 07, 2007 9:29 pm

Nieces came and took huh? Annoying kids! Gone are the days where kids get beaten if they want too much. :D
_________________
http://licklick.wordpress.com

#120970 - Diddl - Wed Mar 07, 2007 9:37 pm

no no. my niece is very neat and charming. I'm glad to make her happy.

#121424 - Diddl - Mon Mar 12, 2007 10:12 am

@lick

do you want to implement soft reset on a ds linker/mk5/n-card/ufpex card. I have two of it: a 16G and a 4G card

#121445 - Lick - Mon Mar 12, 2007 2:58 pm

Yes, I'm planning to add new devices, but so far I haven't been able to discover any fucking thing. Hehe.
_________________
http://licklick.wordpress.com

#121532 - Diddl - Mon Mar 12, 2007 10:37 pm

ok, say if you want to test other devices. EZ Flash V now also here.