Debugging IOP Modules
-
- Posts: 83
- Joined: Wed Jul 13, 2005 12:25 am
Debugging IOP Modules
Is there any recommended ways for debugging IOP modules, when an IOP reset is used? Is there any way to redirect printf's from IOP modules to be sent over an ee_sio cable?
-
- Posts: 83
- Joined: Wed Jul 13, 2005 12:25 am
Thanks for the lead, but I can't load the module:
I don't know what this means, so any help would be appreciated.
Code: Select all
Binding RPC.
Huh, not available, retrying... ?
Binding RPC.
Huh, not available, retrying... ?
Giving up.
-
- Posts: 83
- Joined: Wed Jul 13, 2005 12:25 am
Thanks, I figured there had to be something on the ee side, I just didn't have any idea what. (And documentation is kinda lacking in the sdk)
printf seems broken in the sior irx module
It crashes the console, after printing one character(Granted I had need need to be using printf, it was just a constant string)
Using puts works fine, and I can always combine with sprintf to achieve the desired result.
Again, thanks for the help guys.
printf seems broken in the sior irx module
It crashes the console, after printing one character(Granted I had need need to be using printf, it was just a constant string)
Using puts works fine, and I can always combine with sprintf to achieve the desired result.
Again, thanks for the help guys.
This could possibly be related to the fact the sprintf appears to be broken on the IOP, check this thread:ubergeek42 wrote: printf seems broken in the sior irx module
It crashes the console, after printing one character(Granted I had need need to be using printf, it was just a constant string)
Using puts works fine, and I can always combine with sprintf to achieve the desired result.
http://forums.ps2dev.org/viewtopic.php?t=8326
I'd recommend adding your own sprintf, possibly porting the EE one from ps2sdk.
-
- Posts: 83
- Joined: Wed Jul 13, 2005 12:25 am
Hmm, I was just coming over to the forums to search for that, I vaguely remembered reading that topic(but at the time was uninterested in the iop)
Thanks for the tip on how to do it as well.
Edit: wow the ee version of printf is crazy, I found a simpler implementation(which does what I need it to do, basic debug) written for embedded systems, and it seems to work well.
http://www.menie.org/georges/embedded/
Thanks for the tip on how to do it as well.
Edit: wow the ee version of printf is crazy, I found a simpler implementation(which does what I need it to do, basic debug) written for embedded systems, and it seems to work well.
http://www.menie.org/georges/embedded/