forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

2 Questions....

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
turkeyman



Joined: 20 Oct 2004
Posts: 75
Location: Brisbane, Australia

PostPosted: Sun Jul 24, 2005 11:17 am    Post subject: 2 Questions.... Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
turkeyman



Joined: 20 Oct 2004
Posts: 75
Location: Brisbane, Australia

PostPosted: Mon Jul 25, 2005 9:20 am    Post subject: Reply with quote

No takers?
Has anyone here successfully integrated the USB demo on a 1.5 PSP?
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Warren



Joined: 24 Jan 2004
Posts: 173
Location: San Diego, CA

PostPosted: Mon Jul 25, 2005 1:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
turkeyman



Joined: 20 Oct 2004
Posts: 75
Location: Brisbane, Australia

PostPosted: Mon Jul 25, 2005 7:44 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
turkeyman



Joined: 20 Oct 2004
Posts: 75
Location: Brisbane, Australia

PostPosted: Mon Jul 25, 2005 10:27 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Tue Jul 26, 2005 12:01 am    Post subject: Reply with quote

turkeyman wrote:
-fno-exceptions -fno-rtti


From what I remember, those are entered when coding in C++.
_________________
Lego of my Ago!
Back to top
View user's profile Send private message AIM Address
turkeyman



Joined: 20 Oct 2004
Posts: 75
Location: Brisbane, Australia

PostPosted: Tue Jul 26, 2005 9:36 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group