| View previous topic :: View next topic |
| Author |
Message |
chrismulhearn
Joined: 22 Feb 2006 Posts: 80
|
Posted: Tue Jan 09, 2007 12:49 pm Post subject: Direct hardware access to serial fails after sceIoxxx() stuf |
|
|
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 |
|
 |
chrismulhearn
Joined: 22 Feb 2006 Posts: 80
|
Posted: Tue Jan 09, 2007 7:47 pm Post subject: "system config" area controls a lot of IO function |
|
|
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 |
|
 |
adrahil
Joined: 16 Mar 2006 Posts: 277
|
Posted: Wed Jan 10, 2007 4:37 am Post subject: |
|
|
| 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 |
|
 |
|