Path: chuka.playstation.co.uk!news From: loonybit Newsgroups: scee.yaroze.freetalk.english,scea.yaroze.freetalk Subject: Re: TestCard() issue Date: Mon, 14 Sep 1998 18:51:56 +0200 Organization: PlayStation Net Yaroze (SCEE) Lines: 61 Message-ID: <35FD49AC.7FA76186@augsburg.baynet.de> References: <35FC10F2.3841CEE6@bigfoot.com> NNTP-Posting-Host: 195.37.223.32 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.05 [de] (WinNT; I) Xref: chuka.playstation.co.uk scee.yaroze.freetalk.english:2312 scea.yaroze.freetalk:928 Darco schrieb: > I'm posting this message in the freetalk area because I don't think that > many people read the codewarrior newsgroup. I had a few responses to > that post, but the issue is still unresolved. So here it goes. > > 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. > Doesn't matter what card is in the slot. Even without a card. Crash. > Burn. Die. > > 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) > > In the other newsgroup someone tested my code and confirmed that it > crashes the yaroze when compiled with codewarrior. This would seem to be > a serious problem... I'm suprised that no one has run into it before. > > 'Darco You're not the only one with that problem. I have the same problem with CodeWarrior. Unfortunately i don't no any solutions. Maybe, Metrowerks knows an answer to this problem. 'Andy