| View previous topic :: View next topic |
| Author |
Message |
turkeyman

Joined: 20 Oct 2004 Posts: 75 Location: Brisbane, Australia
|
Posted: Sun Jul 24, 2005 11:17 am Post subject: 2 Questions.... |
|
|
Hi guys,
Is there any word on an RTC/TSC function?
i saw a stub for an sce one, but i tried it out and only managed to get a lot of crashes, has anyone else had any luck with that?
I've also seen some people using clock().. I started using that myself and using this frequency: CLOCKS_PER_SEC * 1000
which seems scarily dodgey... can anyone guarantee thats accurate? (i'm getting some strange timing bugs, but they could also just as easilly be my own code.. just thought i'd check the obvious first)
Secondly,
I was trying to integrate the USB demo into my game for easy development... but its giving me a bit of grief..
before the app launches, it calls this: pspSdkInstallNoDeviceCheckPatch() which seems to lock up for me.. dosent seem to crash, just sits there for a jolly long time...
what is that supposed to do? how does it help the USB demo?
I notice that without it, the rest runs without crashing, but the USB device never gets initialised or activated...
i'm not entirely sure what the 'pspDebugInstallKprintfHandler' call does either, but it didnt seem important and i left it out.. didnt help when i put it in there..
Sorry this is a pretty silly question, just wondering about other people's experience integrating the USB demo... i'm running 1.5 too.. dont know if that makes any difference, since that function says it patches something at runtime, which sounds sus.. |
|
| Back to top |
|
 |
turkeyman

Joined: 20 Oct 2004 Posts: 75 Location: Brisbane, Australia
|
Posted: Mon Jul 25, 2005 9:20 am Post subject: |
|
|
No takers?
Has anyone here successfully integrated the USB demo on a 1.5 PSP? |
|
| Back to top |
|
 |
Warren
Joined: 24 Jan 2004 Posts: 173 Location: San Diego, CA
|
Posted: Mon Jul 25, 2005 1:38 pm Post subject: |
|
|
| You app must run in kernel mode. Copy the module info and thread attrs from the usb sample in SVN (it was updated a day or so ago) |
|
| Back to top |
|
 |
turkeyman

Joined: 20 Oct 2004 Posts: 75 Location: Brisbane, Australia
|
Posted: Mon Jul 25, 2005 7:44 pm Post subject: |
|
|
yeah i was running in kernel mode..
at least i thought i was... my usb demo wasnt that recent tho, maybe a week old.. i'll update and compare the differences.. |
|
| Back to top |
|
 |
turkeyman

Joined: 20 Oct 2004 Posts: 75 Location: Brisbane, Australia
|
Posted: Mon Jul 25, 2005 10:27 pm Post subject: |
|
|
Well i've narrowed it down and it was really quite unexpected...
It seems to be one of these options:
-O2 -G0 -Wall -fno-exceptions -fno-rtti
I didnt have any of those in my app but they were in the sample makefile.. I added them all, and it worked fine...
I dont have time to narrow it down further, I have to go..
But perhaps anyone else can suggest which one its likely to be and why?
Just thought it was worth mentioning incase anyone else finds themselves with the same problem...
Thx again guys! |
|
| Back to top |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Tue Jul 26, 2005 12:01 am Post subject: |
|
|
| turkeyman wrote: | | -fno-exceptions -fno-rtti |
From what I remember, those are entered when coding in C++. _________________ Lego of my Ago! |
|
| Back to top |
|
 |
turkeyman

Joined: 20 Oct 2004 Posts: 75 Location: Brisbane, Australia
|
Posted: Tue Jul 26, 2005 9:36 am Post subject: |
|
|
true, but my project is c++.. but I didnt think it was likely to be those..
whats -G0?
I cant see why not having -O2 would cause it to crash... unless it dosent like a big elf.. (~760k as opposed to ~600 with -O2) |
|
| Back to top |
|
 |
|