What is .twl ?

Post Reply
User avatar
PypeBros
Posts: 38
Joined: Thu Nov 25, 2010 12:00 pm
Location: In a galaxy far, far away
Contact:

What is .twl ?

Post by PypeBros » Thu Jan 17, 2019 11:13 pm

Hello there.

I am trying to recompile my homebrew with the latest devkitarm (r50, gcc-8.2.0)/libnds(1.7.3.1) I downloaded and I was surprised most of my tools inflated over 4MiB. My investigations point to a .twl section that has a physical address of 0x2400000 and gets effectively mapped at 0x400xxx in the final .NDS, although the section itself is pretty small.

I suspect something wrong with my setup / build rules as NDS examples seems to build just fine.

What is the role of that section ? I don't see any such thing in my previous setup.
NDS is the neatest piece of hardware since the C=64! Thanks for making it programmable ^_^

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

Re: What is .twl ?

Post by WinterMute » Fri Jan 18, 2019 1:12 am

The .twl sections contain DSi specific code and all binaries are now hybrid.

Chances are you're still using the very, very old method of flattening the elf to a binary & passing that to ndstool. This will no longer work. Check the templates and other examples, ndstool takes elf files although it will still accept flat binaries since that can be used for extracting and reconstructing .nds files from components.
Help keep devkitPro toolchains free, Donate today

devkitPro IRC support
Personal Blog

User avatar
PypeBros
Posts: 38
Joined: Thu Nov 25, 2010 12:00 pm
Location: In a galaxy far, far away
Contact:

Re: What is .twl ?

Post by PypeBros » Fri Jan 18, 2019 10:46 pm

okay. that worked, as you said.
I suppose there is a good reason to keep the .elf -> .arm9 in ds_rules anyway...
NDS is the neatest piece of hardware since the C=64! Thanks for making it programmable ^_^

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests