Path: chuka.playstation.co.uk!news From: Phil Gooch Newsgroups: scee.yaroze.programming.codewarrior,scea.yaroze.programming.codewarrior Subject: Re: TestCard(); Problems Date: Wed, 09 Sep 1998 16:57:40 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 54 Message-ID: <35F6A574.DEE2C730@easynet.co.uk> References: <35F66900.4DA4E141@bigfoot.com> NNTP-Posting-Host: 193.131.140.246 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.05 [en] (Win95; I) Xref: chuka.playstation.co.uk scee.yaroze.programming.codewarrior:341 scea.yaroze.programming.codewarrior:344 Darco wrote: > Has anyone had any problems using TestCard() in CodeWarrior? > > I just recently bought a new memory card (Hey, it was a black memory > card. I just HAD to have it to match my black playstation. :) and I > wanted to find out how a new, unformatted card behaved. So I write this > really small program: (No this isn't my programing style, I just wrote > it quickly to see how it works) > > -- START OF CODE -- > > #include > > main() > { > int slot0, slot1; > > printf("Memory Card Test\n"); > > slot0 = (long)TestCard((long)0); > > slot1 = (long)TestCard((long)1); > > printf("Slot 0: %d\nSlot 1: %d\n\n",slot0,slot1); > } > > -- END OF CODE -- > > I tried to run it in CodeWarrior... And my playstation ALWAYS chokes on > the TestCard routine. Always. No visible error. It just locks up. Blam. > > I can't get it to work. No matter what I do. I tried changing alot of > target information, but it didn't seem to help. > > Then I compiled this same exact program in GCC and it works like a > charm. (BTW, New memory cards return 4, and the access card returns 0) > > Has anyone else had this problem? I browsed over the newsgroup to see if > anyone else had posted problems(It seems like a big problem), but I > didn't see anyone, so I decied to post. > > 'Darco Maybe you need to format the card first? There's a utility that comes with CW that does it for you. I'll try your code tonight on a formatted card and see what happens Phil