forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Direct hardware access to serial fails after sceIoxxx() stuf

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
chrismulhearn



Joined: 22 Feb 2006
Posts: 80

PostPosted: Tue Jan 09, 2007 12:49 pm    Post subject: Direct hardware access to serial fails after sceIoxxx() stuf Reply with quote

Normally, code like this will loop until the headphone serial port TX buf is empty, and then output a '?'.

while(*(unsigned int*)0xbe500018 & 0x00000020) {
}
*(unsigned int*)0xbe500000 = '?';


However, after using the SDK functions to talk to the memory stick, this direct hardware IO no longer works.

Even if i reconfigure the baud rate, etc.

Anyone have any idea why that may be?
Back to top
View user's profile Send private message
chrismulhearn



Joined: 22 Feb 2006
Posts: 80

PostPosted: Tue Jan 09, 2007 7:47 pm    Post subject: "system config" area controls a lot of IO function Reply with quote

OK it looks like the problem was that the fileio functions were altering some of the values in the system config area. That is the hardware register area in the range of 0xBC1000XX .

Code that saves the values in BC100000, BC100004, 08, ... through BC100080 and then restores the values after finishing up w/ the fileio functions took care of the problem.
Back to top
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Wed Jan 10, 2007 4:37 am    Post subject: Reply with quote

Interesting :) Could you try printing out the values before/after and posting them here... My raw guess would be that 0xbc100078 or 0xbc10007c change....
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group