Search found 354 matches

by elhobbs
Wed Jul 03, 2013 12:38 am
Forum: DS Development
Topic: Get ram usage data
Replies: 19
Views: 14349

Re: Get ram usage data

Sounds like a palette issue. The original images load fine for me. Try a different image with more colors and details and see if you get something recognizable. Also try it out in desmume use the VRAM tools to see if the images are loaded correctly.
by elhobbs
Mon Jul 01, 2013 1:42 am
Forum: DS Development
Topic: Get ram usage data
Replies: 19
Views: 14349

Re: Get ram usage data

I am not saying that there is anything wrong with nflib. I am only pointing out that the assets you are trying to use are not particularly suited to the ds. keep in mind the ds screen resolution is 256x192 so you do not really need huge images. also you should probably look at 8bit or even 4bit text...
by elhobbs
Sat Jun 29, 2013 12:46 pm
Forum: DS Development
Topic: Get ram usage data
Replies: 19
Views: 14349

Re: Get ram usage data

The 512x512 background was being loaded as a 16bit image in VRAM. That by itself uses all of the VRAM the ds has available. It think the ne lib uses some of that VRAM for tracking allocations. So I do not think it would even fit by itself. In any case it leaves you with no place to load anything else.
by elhobbs
Sat Jun 29, 2013 2:24 am
Forum: DS Development
Topic: Get ram usage data
Replies: 19
Views: 14349

Re: Get ram usage data

I resized nitrofiles\stages\yoshi\yoshi from 512x512 to 128x128 and everything loads fine.
by elhobbs
Sat Jun 29, 2013 1:16 am
Forum: DS Development
Topic: Get ram usage data
Replies: 19
Views: 14349

Re: Get ram usage data

ok - you are not failing to allocate memory using malloc. rather it is NE_Alloc that is failing. NE_Alloc in this case is trying to allocate from VRAM - which you have configured to use VRAM A-D for textures. which is 512K in total. the texture you are trying to load is way too big for the ds. you c...
by elhobbs
Fri Jun 28, 2013 11:52 am
Forum: DS Development
Topic: Get ram usage data
Replies: 19
Views: 14349

Re: Get ram usage data

Did you verify the amount you are trying to allocate when it fails? Do you have any code that I could look at?
by elhobbs
Fri Jun 28, 2013 1:18 am
Forum: DS Development
Topic: Get ram usage data
Replies: 19
Views: 14349

Re: Get ram usage data

take a step back. how much memory are you trying to allocate? the ds only has 4MB of ram that is shared with both code and data. use the arm-none-eabi-size.exe program to see how much code and static data you have. that will let you know how much main ram will be available for use with malloc. is it...
by elhobbs
Thu Jun 27, 2013 5:25 pm
Forum: DS Development
Topic: Get ram usage data
Replies: 19
Views: 14349

Re: Get ram usage data

try searching for mallinfo. keep in mind that on a system with limited resources like the ds you can run into issue where you have enough free memory but it is fragmented - so you do not have a free chunk that is big enough to satisfy a malloc request. it can even come down to the order that objects...
by elhobbs
Tue Jun 25, 2013 9:30 pm
Forum: DS Development
Topic: connect to router in game?
Replies: 2
Views: 4994

Re: connect to router in game?

the ds lite does not have a builtin utility to edit the wifi connection data like the dsi or 3ds. however you can scan for access points using dswifi. you would need a way to select the right ap and provide a wep key if needed. the dswifi source wifi_arm9.c in particular Wifi_AutoConnect and Wifi_As...
by elhobbs
Mon Jun 17, 2013 6:45 pm
Forum: devkitARM
Topic: Help with example projects keyboard and both screens ?
Replies: 2
Views: 7299

Re: Help with example projects keyboard and both screens ?

no - libnds would have been better than devkitarm you would need to create something custom to get that functionality. the libnds console code is not setup to handle that use case. it is not impossible, but it would probably be easier to create something custom. take a look at the source code and go...