Makefile question - IWRAM

support for the ARM toolchain
Post Reply
Jim
Posts: 2
Joined: Fri Aug 29, 2008 3:59 pm

Makefile question - IWRAM

Post by Jim » Fri Aug 29, 2008 4:30 pm

When i try in my program to use wram bank0 with Arm9 i find that there is data written to it.
After doing that Arm7 stops functioning properly.
I have read many times that Arm7 stores its binary data to iwram.
I have also heard that both wram banks are given to Arm7 by default.
My Arm7 binary is only 12KB and fits perfectly to iwram.
Why wram bank0 is used? :?
Is it possible to "force" Arm7 binary to be copied at iwram with a makefile parameter?

I have seen at devkitArm's release that:
"The included makefile rulesets have been reordered so that .itcm/.iwram/.arm.c/cpp files should work as intended.."
Is this ruleset (the .iwram one) what i have to make?
If this is the solution can somebody help me because i have no idea how to write it? :?

What i suspect is that my Arm7 binary is copied to the first available memory (wram bank0) and
that iwram remains empty because my program is pretty small. :(

Jim
Posts: 2
Joined: Fri Aug 29, 2008 3:59 pm

Re: Makefile question - IWRAM

Post by Jim » Sat Aug 30, 2008 10:33 am

I have checked my .map file and i saw the 0x037f8000 address which belongs to wram.
How can i place the code in the iwram which is at 0x03800000?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest