gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Accessing Cart ROM from ARM7...

#65113 - blaisef01 - Fri Dec 30, 2005 9:17 am

Hi,

I've written a mod player and have been trying to move all code across to the ARM7 processor. I've been trying to access data on the cartridge ROM and it's failing...
The method i'm using is this..
1) Get address from gbfs_get_obj in my ARM9 code
2) pass that address to ARM7 using interprocessor communication code
3) try to read a value from that address.
4) check value to ensure it's correct

I read somewhere that both processors cannot access cartridge rom simultanoesly, but i don't really have a clue how to tell DS which processor has access. I believe it has something to do with WAIT_CR register what i don't know...

anyone have any ideas, cheers

#66448 - dovoto - Tue Jan 10, 2006 10:07 pm

i recomend:
void sysSetCartOwner(BUS_OWNER_ARM7);

This can only be done from the arm9
_________________
www.drunkencoders.com