development help

support for the ARM toolchain
Post Reply
jecdsi
Posts: 5
Joined: Fri Jul 24, 2009 12:26 pm

development help

Post by jecdsi » Fri Jul 24, 2009 12:37 pm

Dear developpers

First thanks for all your great job!
I am a new comer although I know how to use C/C++/Java and I am participating to large software development... as I am a High Energy Physicist. Now, I would like to try to write some homebrews for my boy's NDSi.
I had a look at outdated and inappropriate tutorial as first start (this is in French). But, I would like to get some precision.
I will develop under Ubunto 8.04 32bits hosted by VirtualBox under W$ XP (I have also SLC4 64bits machine but this is for work...) where I have gcc 4.2.4.
So, I wander
1) which is the minimal set of libraries/kits/examples... compatible with my system
2) is I should install an other gcc, and related libraries...

Sincerely

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: development help

Post by WinterMute » Fri Jul 24, 2009 1:17 pm

Firstly PAlib is not supported by devkitPro due to continual compatibility issues, see http://wiki.devkitpro.org/index.php/PAlib for some brief notes.

I'm not entirely sure why you would use devkitARM in a Ubuntu VM under windows given that the primary platform we support is Windows - currently the other platforms are lagging in terms of ease of install. I would recommend using the windows installer rather than attempting to go with a manual installation right now, especially since Sourceforge have changed their site around again recently with the result that direct links to the appropriate packagages no longer work.

http://patater.com/manual is probably a reasonable place to start in terms of tutorials, the windows installer also grabs the libnds sample code which is worth browsing.
Help keep devkitPro toolchains free, Donate today

Personal Blog

jecdsi
Posts: 5
Joined: Fri Jul 24, 2009 12:26 pm

Re: development help

Post by jecdsi » Sat Jul 25, 2009 11:11 am

WinterMute wrote:Firstly PAlib is not supported by devkitPro due to continual compatibility issues, see http://wiki.devkitpro.org/index.php/PAlib for some brief notes.

I'm not entirely sure why you would use devkitARM in a Ubuntu VM under windows given that the primary platform we support is Windows - currently the other platforms are lagging in terms of ease of install. I would recommend using the windows installer rather than attempting to go with a manual installation right now, especially since Sourceforge have changed their site around again recently with the result that direct links to the appropriate packagages no longer work.

http://patater.com/manual is probably a reasonable place to start in terms of tutorials, the windows installer also grabs the libnds sample code which is worth browsing.
Okay!!!! I was not sure how to start. So Windows is the baseline dev plateform. I have only Eclpse/Java running under Windows XP. Anyway I will have a look at the link you pointed to me and if I have questions then I will post...

I have downloaded and executed devkitProUpdater-1.5.0.exe
from http://www.devkitpro.org/downloads/ is-it Ok?

At least I have managed to compile hello_world exemple :mrgreen: But now how can I test it on my PC? is there any NDSi emulator ? (for the moment I have no linker)


Also I have read form http://patater.com/manual the hardware part (PassMe... and so on), although I have read from linker site (eg. http://www.xavboxds.com/fr/dsi/linker-dsi.php) that new linkers do not need anymore PassMe or intermediate chip so I guess your up to date libraries are dealing with these hardware modifications and improvments, aren't they?


Thanks.

User avatar
vuurrobin
Posts: 219
Joined: Fri Jul 11, 2008 8:49 pm
Location: The Netherlands
Contact:

Re: development help

Post by vuurrobin » Sat Jul 25, 2009 1:52 pm

currently, the best emulator is no$gba:

http://nocash.emubase.de/gba.htm

although nothing beats testing on hardware.


and the hardware part is mostly that you understand a bit of the history. the code should work with the latest dsi flashcards.


and last time I checked, pataters tutorial didn't used the latest libnds functions, thus duplication some stuff. it still works with the latest libnds, and its still usefull to learn alot of stuff, but you should also look at the libnds examples to see what you need to do yourself and what libnds already does for you.

jecdsi
Posts: 5
Joined: Fri Jul 24, 2009 12:26 pm

Re: development help

Post by jecdsi » Sat Jul 25, 2009 2:00 pm

vuurrobin wrote:currently, the best emulator is no$gba:

http://nocash.emubase.de/gba.htm

although nothing beats testing on hardware.


and the hardware part is mostly that you understand a bit of the history. the code should work with the latest dsi flashcards.


and last time I checked, pataters tutorial didn't used the latest libnds functions, thus duplication some stuff. it still works with the latest libnds, and its still usefull to learn alot of stuff, but you should also look at the libnds examples to see what you need to do yourself and what libnds already does for you.
no$gba is also for NDSi?
Does the examples for NDS coming with devkitpro installer are ok or do you refer to other kinds of examples?

User avatar
vuurrobin
Posts: 219
Joined: Fri Jul 11, 2008 8:49 pm
Location: The Netherlands
Contact:

Re: development help

Post by vuurrobin » Sat Jul 25, 2009 2:58 pm

yes I mean the examples that come with the installer.

and no, no$gba isn't for the dsi, but afaik, there currently isn't a way to run code in dsi mode (all the dsi flashcarts just run in ds mode)

jecdsi
Posts: 5
Joined: Fri Jul 24, 2009 12:26 pm

Re: development help

Post by jecdsi » Sat Jul 25, 2009 4:02 pm

In fact I was wandering what can I do with the output of the make action with:
  • hello_world.elf
  • hello_world.arm9
  • hello_world.nds
I mean that reading Jaeden Amero's tutorial at Compiling section:
See Figure 5.4, “The program should look like this when run.”
but there is no instruction how to run :?:

User avatar
vuurrobin
Posts: 219
Joined: Fri Jul 11, 2008 8:49 pm
Location: The Netherlands
Contact:

Re: development help

Post by vuurrobin » Sat Jul 25, 2009 5:01 pm

to run it with no$gba, you just doubleclick the NO$GBA.EXE and then select your hello_world.nds

to run it on dsi hardware you need an dsi compatable flashcard, put the nds file on it and run it trough the flashcards firmware. this really differs per flashcard.

jecdsi
Posts: 5
Joined: Fri Jul 24, 2009 12:26 pm

Re: development help

Post by jecdsi » Sat Jul 25, 2009 6:26 pm

vuurrobin wrote:to run it with no$gba, you just doubleclick the NO$GBA.EXE and then select your hello_world.nds

to run it on dsi hardware you need an dsi compatable flashcard, put the nds file on it and run it trough the flashcards firmware. this really differs per flashcard.
Great!!! :P
I see the double screen with a Title and a message + frame number + pointer x & y coordinates

I do not know how to put an image in this Forum but I am like a child :mrgreen:

Thanks and @+ after some weeks of vacations

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest