How NOT to brick your PSP

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
Barts_706
Posts: 38
Joined: Tue Jan 24, 2006 2:21 pm
Contact:

How NOT to brick your PSP

Post by Barts_706 »

Since I am moving on from compiling examples and slight modifications to someone else's code to writing my own little pieces of code and experimenting with PSPGL, I would like to ask one very important question before I start.

I have heard quite a lot about bricking PSP. Is there anything that should absolutely NOT be done by the homebrew programs in order to avoid bricking PSP?

Theoretically if the firmware rests intact, there shouldn't be any issues, but I prefer to ask nevertheless. Because firstly I tend to have this little unlucky moments, after which everyone tells me "How come you didn't know that you're not supposed to do that? Everyone knows that you can't..." (everyone but me usually) and secondly I don't have funds for second PSP.

So if there are any nasty surprise waiting for unexperienced PSP programmers (I don't dare call myself developer), please tell me.
urchin
Posts: 121
Joined: Thu Jun 02, 2005 5:41 pm

Post by urchin »

If you are so unsure, you can always run your apps in user mode (rather than kernel mode), until you pick up enough experience and courage to start experimenting with other things.
danzel
Posts: 182
Joined: Fri Nov 04, 2005 11:03 pm

Post by danzel »

basically: dont touch the flash.

Running in usermode is good, as then you can't touch it :)
placasoft
Posts: 53
Joined: Mon Mar 28, 2005 10:53 am

Post by placasoft »

You can touch flash in user mode, too!
Brunni
Posts: 186
Joined: Sat Oct 08, 2005 10:27 pm

Post by Brunni »

May I ask a question, please?
Once, as my program (running in user mode) crashed severely (I forgot to check if the file could be opened before reading with fgetc), I had a blue screen when rebooting the console and the firmware settings (date, and so on) had to be reseted, like if I bought a new PSP. Hopefully, my PSP isn't bricked, but does this mean my flash has been touched when the program crashed?
Sorry for my bad english
Image Oldschool library for PSP - PC version released
funetik
Posts: 11
Joined: Sat Jan 07, 2006 5:01 am

Post by funetik »

There are two parts of flash - flash0 and flash1.

Flash0 contains the firmware and Flash1 contains system settings/date and time etc. At least, that's the way I understand it.

Looks like you upset flash1 and that's why it needed the date etc reset.
User avatar
dot_blank
Posts: 498
Joined: Wed Sep 28, 2005 8:47 am
Location: Brasil

Post by dot_blank »

just dont use any flash0 calls and keep in mind
you still can brick in user mode ...but kernel mode
you should stray far away until you need a kernel
feature ie...usb, kprintf ... and certainly do not
ever write over any file in flash0

greets
10011011 00101010 11010111 10001001 10111010
Arwin
Posts: 426
Joined: Tue Jul 12, 2005 7:00 pm

Post by Arwin »

As far as I understand it, you don't need kernel mode for USB. At least not for the basic file stuff - Fanjita's loader shows this.
User avatar
Barts_706
Posts: 38
Joined: Tue Jan 24, 2006 2:21 pm
Contact:

Post by Barts_706 »

Wow. Looks like my post initiated some more serious discussion.

Well, as for me. I'll stick to user mode then.
Gary13579
Posts: 93
Joined: Mon Aug 15, 2005 7:43 am

Post by Gary13579 »

Sorry for the noob question, but no one in IRC answered (hey, what else is new?).
How do I make sure my app is launched in user mode? I want to make sure it is compatible with all firmware versions, so this is a must..

Also, if the program is in user mode, will DHCP for WiFi still work?
HaQue
Posts: 91
Joined: Fri Nov 25, 2005 8:52 am
Location: Adelaide, Australia
Contact:

Post by HaQue »

//kernel mode
PSP_MODULE_INFO(MODULE_NAME, 0x1000, 1, 1);


//user mode
PSP_MODULE_INFO(MODULE_NAME,0, 1, 1);


Im fairly sure thats all there is to it.
Dr. Vegetable
Posts: 171
Joined: Mon Nov 14, 2005 1:32 am
Location: Boston, Massachusetts
Contact:

Post by Dr. Vegetable »

I wouldn't worry too much about bricking your PSP by writing buggy homebrew. This is very unlikely unless you experiment with re-writing the firmware flash chip on the motherboard, which is not the same as writing to the flash chip on a memory stick.

Accidental bricking is not something I worry about, and I've written some pretty buggy homebrew apps. Just last night I hung my PSP with a dark screen, and then it wouldn't reset (hold the power switch up for 10-20 seconds) and wouldn't turn on again even after I removed the battery from the unit for a few seconds. It turns out that the battery was dead, and the PSP revived as soon as I plugged it into the charger.

Just like dropping the soap in the shower, everyone will warn you against bricking your PSP, but I suspect that nobody is speaking from personal experience. So how many of you reading this have actually bricked a PSP by having one of your own applications crash? I am curious to hear any first-hand horror stories...
Shatterdome
Posts: 11
Joined: Tue Nov 22, 2005 6:49 pm

Post by Shatterdome »

None, the worst I get is it will freeze and you may not be able to shut it off yourself, but it turns itself off eventually. Ocassionaly you wont be able to turn it back on, until it sits for like 20 secs, or you remove the battery...I've yet to play much with reading and writing to the MS, but like it's been said, shouldn't be too much risk if you are not touching the flash...
dbeyer3069
Posts: 81
Joined: Mon Dec 19, 2005 4:09 pm

Post by dbeyer3069 »

Dr. Vegetable wrote:I wouldn't worry too much about bricking your PSP by writing buggy homebrew. This is very unlikely unless you experiment with re-writing the firmware flash chip on the motherboard, which is not the same as writing to the flash chip on a memory stick.

Accidental bricking is not something I worry about, and I've written some pretty buggy homebrew apps. Just last night I hung my PSP with a dark screen, and then it wouldn't reset (hold the power switch up for 10-20 seconds) and wouldn't turn on again even after I removed the battery from the unit for a few seconds. It turns out that the battery was dead, and the PSP revived as soon as I plugged it into the charger.

Just like dropping the soap in the shower, everyone will warn you against bricking your PSP, but I suspect that nobody is speaking from personal experience. So how many of you reading this have actually bricked a PSP by having one of your own applications crash? I am curious to hear any first-hand horror stories...
I managed to brick my first PSP in the first 4 days of owning it. Turned out the battery was bad...and somehow when I did a "restore default settings" in the PSP menu... it was all she wrote. Had to ship it back to PSPville and I got a new one. Wasn't anything I did. Was just one of those flukes.

Can't say I've had the soap experience though :)
Post Reply