| View previous topic :: View next topic |
| Author |
Message |
gadget
Joined: 09 Jul 2005 Posts: 5
|
Posted: Mon Mar 13, 2006 7:33 am Post subject: Printf to UsbHostfs_pc or pcterm with psplink? |
|
|
| Is it possible to do a printf to either pcterm or the usbhostfc_pc app using the usb connection for PSPlink? I'm finding lots of good information on sio out throuh the serial post, but nothing that really mentions the usb connection for this behavior. |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Mon Mar 13, 2006 4:51 pm Post subject: |
|
|
| If you read the manual of psplink then you will see there is a USB shell available (you enable it on the psp side then connect using pcterm to the localhost), that doesn't just do the shell of course it also does printfs from your app to your pc. |
|
| Back to top |
|
 |
gadget
Joined: 09 Jul 2005 Posts: 5
|
Posted: Tue Mar 14, 2006 1:34 pm Post subject: |
|
|
| TyRaNiD wrote: | | If you read the manual of psplink then you will see there is a USB shell available (you enable it on the psp side then connect using pcterm to the localhost), that doesn't just do the shell of course it also does printfs from your app to your pc. |
Actually, i've been using the usbShell to load and run code. The pdf file was the first place I went to in search of help. :) I have a printf as one of the first lines in my app, just printf("hello");. Should this appear in the PCTerm window or the usbHostFS? The app itself is running fine on the PSP.
Thanks for your help. |
|
| Back to top |
|
 |
ginka
Joined: 17 Feb 2006 Posts: 15
|
Posted: Tue Mar 14, 2006 3:53 pm Post subject: |
|
|
| gadget wrote: | | I have a printf as one of the first lines in my app, just printf("hello");. Should this appear in the PCTerm window or the usbHostFS? |
It will appear in the pcterm window. The very first line in main() in most of my apps is a printf(), and they always print out to the pcterm window. |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Tue Mar 14, 2006 4:50 pm Post subject: |
|
|
| Well if you have the usb shell running then printf is working as the shell itself uses printf to display the text on the screen. A common mistake (and one ill admit to have done :)) is if you have moved across code from an existing app which originally printed to the screen you still have the #define printf pspDebugScreenPrintf at the top, this would mean you are not actually calling the real printf. Check this first. |
|
| Back to top |
|
 |
gadget
Joined: 09 Jul 2005 Posts: 5
|
Posted: Wed Mar 15, 2006 1:02 pm Post subject: |
|
|
| TyRaNiD wrote: | | Well if you have the usb shell running then printf is working as the shell itself uses printf to display the text on the screen. A common mistake (and one ill admit to have done :)) is if you have moved across code from an existing app which originally printed to the screen you still have the #define printf pspDebugScreenPrintf at the top, this would mean you are not actually calling the real printf. Check this first. |
Thanks, I'll take a look at that. Great tool by the way :) _________________ <!-- Coder grrl. --> |
|
| Back to top |
|
 |
|