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 > Some problems with devkitARM R20 and new libnds

#116986 - kansado - Wed Jan 31, 2007 3:40 pm

Altough there is another thread related to problems with these, I'm opening a new one as mine are not of the same nature.

- The newer libdswifi I'm able to link to (tested with libnds 20070127 and libnds 20060719) is 0.3b. With 0.3c or 0.3d I get an 'invalid reference to DC_FlushAll' linking error, despite to having a look into libnds9.a it seems that it's there.

- The stylus doesn't work anymore. I've tried to compile the input related examples and they don't work either. Maybe some things are to be changed in these examples.

Should I go back to dswifi 0.3b and the previous libnds (20060719) until these problems are solved? Or I'm doing something wrong?

By the way, are the examples for previous libdswifi versions valid for the newer? If not, where could I find them? I've searched a lot without any success.

Thanks in advance.

#116989 - wintermute - Wed Jan 31, 2007 4:19 pm

kansado wrote:

- The newer libdswifi I'm able to link to (tested with libnds 20070127 and libnds 20060719) is 0.3b. With 0.3c or 0.3d I get an 'invalid reference to DC_FlushAll' linking error, despite to having a look into libnds9.a it seems that it's there.


The link order is wrong in the dswifi examples, in the arm9 makefile change

Code:

LIBS   := -lnds9 -ldswifi9


to

Code:

LIBS   := -ldswifi9 -lnds9


Quote:

- The stylus doesn't work anymore. I've tried to compile the input related examples and they don't work either. Maybe some things are to be changed in these examples.


What method are you using to run homebrew? The arm7 core now defaults to a different address which might cause the arm7 core to fail with some boot methods.

If you had previously built the examples with r19b cleaning and rebuilding might make them work again.

I've tested the new address with gbamp (latest chishm firmware v2.11 http://chishm.drunkencoders.com/NDSMP/index.html ), supercard miniSD, M3 standard SD and NinjaDS. These cards all work.

M3 Simply DS and R4 appear to have arm7 related issues but that appears to be a different problem since devkitARM r19b compiled applications don't work there either.

Quote:

Should I go back to dswifi 0.3b and the previous libnds (20060719) until these problems are solved? Or I'm doing something wrong?


Hopefully we can resolve your problems fairly quickly, hold off on reverting for now.

Quote:

By the way, are the examples for previous libdswifi versions valid for the newer? If not, where could I find them? I've searched a lot without any success.



The dswifi examples need some tweaking for later libnds versions. Currently I'm doing some tidying up and adding them to the devkitPro supplied examples.

I'm planning on adding dswifi functionality to the default arm7 core - this should help simplify wifi enabled projects.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#117026 - kansado - Wed Jan 31, 2007 9:21 pm

The change in library linking order did the trick.

My tests about stylus weren't as complete as they should be. Since stylus code failed in my own project, both in emulators and in hardware, after I saw examples failing on emulators I didn't try to run them on a real NDS (through SuperCard Lite -MicroSD-). They work perfect there, built with the last libnds and devKitPro. Sorry for making you losing your time.

Till now I was testing code (my own and libnds examples) on DualiS. It also worked on iDeaS and ensata. With the last libnds release, it doesn't work on these, but works perfectly on DeSmuME.

To sum up, my problems have been solved!

Thanks a lot for your great work on devKitPro!