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 > Help building something

#125056 - DS_LitE - Wed Apr 11, 2007 1:33 am

well im building a project in devARM,and when i compile it it says
undefined reference to "PowerChip_ReadWrite". the project involves
reading the chip,and i checked and the "dswifi7.h" is included. i use
it in a way where its like:
Code:
int dschipdat=PowerChip_ReadWrite(1,0)


and the declare is:

Code:
iprintf("Data on Chip %",dschipdat)

#125059 - josath - Wed Apr 11, 2007 1:52 am

1. This can only be done from ARM7 processor (not the arm9)
2. Make sure libdswifi7.a is being compiled into your arm7 binary (you need a -ldswifi7 or a -ldswifi7d in the LIBS line in your arm7/Makefile)

#125060 - DS_LitE - Wed Apr 11, 2007 1:56 am

1.how do i make i work on the arm7?
2.yes its there