#138204 - calcprogrammer1 - Tue Aug 21, 2007 3:51 am
Since this is sort of off topic for Chishm's topic, I'll move this discussion to it's own topic.
I'm trying to use Chishm's Bootloader with PAlib. Currently, I put the ARM7 files (nds_loader_arm7.h and .c) in PAlib/lib/arm7 and added #include "nds_loader_arm7.h" and the check function to main.c for the arm7. Then I copied the load.bin (not renamed, renamed made load_bin_bin.h) to PAlib/lib/arm9/data, then copied the nds_loader_arm9.h and .c to PAlib/lib/arm9. I added #include "nds_loader_arm9.h" to the main.c in there too. Then I tried the fast build thing. This is what I got:
[Images not permitted - Click here to view it]
Any ideas?
EDIT: Just noticed the load.bin didn't compile, I cleaned and tried again.
[Images not permitted - Click here to view it]
It says there's an error that REG_EXEMEMCNT isn't declared. I looked at the source file (nds_loader_arm9.c) and...well, it isn't declared, it's used in the line:
If such function or variable is declared in the ARM7 code, maybe the arm9 code isn't seeing it...well, I've looked through both ARM7 files (.h and .c) and found no REG_EXEMEMCNT, so that isn't it... Is this declared in the load.bin file? libnds? libfat? Where is REG_EXEMEMCNT declared to begin with, that way it could be added or compiled in with the PAlib compile.
EDIT AGAIN :) :
A google search of "REG_EXEMEMCNT" turned up some interesting posts. Apparently REG_EXEMEMCNT was renamed REG_EXMEMCNT, and this edit makes it compile just fine :P Now to test the code to see if it WORKS.
_________________
DS Firmware 1, Datel Games n' Music card / Chism's FW hacked GBA MP v2 CF
There's no place like 127.0.0.1.
I'm trying to use Chishm's Bootloader with PAlib. Currently, I put the ARM7 files (nds_loader_arm7.h and .c) in PAlib/lib/arm7 and added #include "nds_loader_arm7.h" and the check function to main.c for the arm7. Then I copied the load.bin (not renamed, renamed made load_bin_bin.h) to PAlib/lib/arm9/data, then copied the nds_loader_arm9.h and .c to PAlib/lib/arm9. I added #include "nds_loader_arm9.h" to the main.c in there too. Then I tried the fast build thing. This is what I got:
[Images not permitted - Click here to view it]
Any ideas?
EDIT: Just noticed the load.bin didn't compile, I cleaned and tried again.
[Images not permitted - Click here to view it]
It says there's an error that REG_EXEMEMCNT isn't declared. I looked at the source file (nds_loader_arm9.c) and...well, it isn't declared, it's used in the line:
Code: |
REG_EXEMEMCNT |= ARM7_OWNS_ROM | ARM7_OWNS_CARD; |
If such function or variable is declared in the ARM7 code, maybe the arm9 code isn't seeing it...well, I've looked through both ARM7 files (.h and .c) and found no REG_EXEMEMCNT, so that isn't it... Is this declared in the load.bin file? libnds? libfat? Where is REG_EXEMEMCNT declared to begin with, that way it could be added or compiled in with the PAlib compile.
EDIT AGAIN :) :
A google search of "REG_EXEMEMCNT" turned up some interesting posts. Apparently REG_EXEMEMCNT was renamed REG_EXMEMCNT, and this edit makes it compile just fine :P Now to test the code to see if it WORKS.
_________________
DS Firmware 1, Datel Games n' Music card / Chism's FW hacked GBA MP v2 CF
There's no place like 127.0.0.1.