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?
Direct hardware access to serial fails after sceIoxxx() stuf
-
- Posts: 80
- Joined: Wed Feb 22, 2006 4:43 am
-
- Posts: 80
- Joined: Wed Feb 22, 2006 4:43 am
"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.
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.