XboxHacker BBS
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
June 18, 2013, 05:03:28 PM


Login with username, password and session length


Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 »
  Print  
Author Topic: USB SPI Flasher with PIC18F2455 - now with source and binaries  (Read 314612 times)
joeyddr
Master Hacker
****
Posts: 134


View Profile
« Reply #280 on: December 07, 2009, 03:25:47 PM »

better yet can a jdm programmer be used to program the pic? I have one of those built somewhere when i was programming my own wii yaosm chips.
Logged
rolf2
Master Hacker
****
Posts: 113



View Profile
« Reply #281 on: December 07, 2009, 03:26:58 PM »

yes, i'm using jdm and winpic800
Logged
cory1492
Xbox Hacker
*****
Posts: 616


View Profile
« Reply #282 on: December 07, 2009, 03:27:28 PM »

How long does it take to Read a 256 or 512 MB NAND flash ( on Jasper M/B)?
I know for a 16 MB NAND it takes about 6 minutes with the USB programmer.
One of the fellows who tested for me said it's a bit over 2hrs on 512, closer to 15hrs with lpt; when I timed it, it was under 5 minutes for 16M and the data rate on any other will not be different... going with 5m/16M it works out to about 1h20m for 256 and 2h40m for 512.
Logged
joeyddr
Master Hacker
****
Posts: 134


View Profile
« Reply #283 on: December 07, 2009, 03:33:46 PM »



This is what i have and i guess would have to modify a bit for the 18f chip?
Logged
MRA
Hacker
***
Posts: 81


View Profile
« Reply #284 on: December 07, 2009, 04:37:22 PM »

How long does it take to Read a 256 or 512 MB NAND flash ( on Jasper M/B)?
I know for a 16 MB NAND it takes about 6 minutes with the USB programmer.

Yes, it takes about 90 minutes for 256MB.
Logged
MotoMax
Newbie
*
Posts: 7


View Profile
« Reply #285 on: December 07, 2009, 11:58:12 PM »

Is there a typo in this schematic?  PIC pin 24 resistor... says 10k should it be 100 ohms?



You can connect pin 17 to ground (jumper in Sandugas his image) and it should be recognised by windows as the bootloader, then you can reprogram it.

If you have a very old version of the bootloader it could be a problem if i remember correctly....again is mentioned in this thread.
Logged
ColtB45
Member
**
Posts: 11


View Profile
« Reply #286 on: December 08, 2009, 12:22:11 AM »

Pin 26 (not 24) shows a 10K resistor to common ground. That's correct and not a typo.
Is there a typo in this schematic?  PIC pin 24 resistor... says 10k should it be 100 ohms?
Logged
MotoMax
Newbie
*
Posts: 7


View Profile
« Reply #287 on: December 08, 2009, 01:25:43 AM »

You are right it was pin 26 I was looking at.  Its just that I ordered the parts from the first post and only one 10k resister is listed so I though it was a typo.  But I guess this is a different design that uses two 10k resisters.
Logged
sandungas
Master Hacker
****
Posts: 212



View Profile
« Reply #288 on: December 08, 2009, 01:46:19 AM »

The 10K resistor in pic leg 26--->GND is to avoid the pic enter in lvp mode randomly
Is only needed if you program the pic with ldv (the diagram i did is intended to be used with ART2003, and ART2003 works in ldv)

If the pic is not programmed in ldv... you need to replace this resistor with a wire
« Last Edit: December 08, 2009, 02:09:37 AM by sandungas » Logged
rolf2
Master Hacker
****
Posts: 113



View Profile
« Reply #289 on: December 08, 2009, 01:49:33 AM »

if lvp is off - rb5 can be used as I/O and you don't need any resistor or wire there ...


Logged
sandungas
Master Hacker
****
Posts: 212



View Profile
« Reply #290 on: December 08, 2009, 02:09:17 AM »

if lvp is off - rb5 can be used as I/O and you don't need any resistor or wire there ...
I was trying to find in the message where somebody commented to join leg 26 with ground with a wire
But it was just a suggestion to solve a concrete problem, probably cant be applyed to all cases, i will strike what i said to avoid confussion

Btw...
This message is when the bootloader was changed (this page and previous has some messages related of why the bootloader was changed, and why is there the 10K resistor)
http://www.xboxhacker.net/index.php?topic=12306.msg82995#msg82995
http://www.xboxhacker.net/index.php?topic=12306.msg83017#msg83017
« Last Edit: December 09, 2009, 06:04:48 PM by sandungas » Logged
sergiyua
Newbie
*
Posts: 1


View Profile
« Reply #291 on: December 08, 2009, 01:00:36 PM »

Hi guys!
I have a Jasper 512 mb, remained still readable on the same LPT Computers read from the curve configuration flash, the other everything is OK, but LPT very long ago abolished and decided to make a USB, but something happened now define the image could not be flash config, all wires inspect everything is ok, that might be? Maybe that box is locked software?
Logged
MRA
Hacker
***
Posts: 81


View Profile
« Reply #292 on: December 08, 2009, 01:52:51 PM »

Sorry but I donīt understand one word...
Logged
joeyddr
Master Hacker
****
Posts: 134


View Profile
« Reply #293 on: December 08, 2009, 02:46:22 PM »

in this pic

you have a 220uF cap and not sure what the resistor is....

but this one


it says 47uF cap and it has a 220 resistor... which one should i follow?
Logged
MotoMax
Newbie
*
Posts: 7


View Profile
« Reply #294 on: December 08, 2009, 03:16:23 PM »


Are you saying you get incorrect FlashConfig when you try to read the nand with your USB flasher?

Hi guys!
I have a Jasper 512 mb, remained still readable on the same LPT Computers read from the curve configuration flash, the other everything is OK, but LPT very long ago abolished and decided to make a USB, but something happened now define the image could not be flash config, all wires inspect everything is ok, that might be? Maybe that box is locked software?
Logged
joeyddr
Master Hacker
****
Posts: 134


View Profile
« Reply #295 on: December 08, 2009, 05:39:58 PM »

Nice! Especially that you are releasing the sources! Cheesy

I was just getting in touch with the SPI protocol and today I etched a board for an Atmega8 to use it as an SPI flasher.

It took me a few days to get some stuff that works for sniffing the NandPro protocol... And I'm just able to get the flashconfig. At least sometimes... I think my cables are too long. My own board isn't finished yet, so I hooked up an STK500.

Several things I tried for sniffing:
1) The Logic Analyzer I used for sniffing didn't have a protocol analyzer and counting clock cycles was boring and just sucked Wink
2) Using an AVR to sniff the SPI stuff "on the wires" didn't work out... Perhaps too fast.
3) MS Detours for hooking the DLL calls to DLPortIO didn't work, too.
4) Then I created my own DLPortIO.dll, loaded the real DLPortIO.dll and delegated the calls of NandPro to the real ones and logged everything. That worked finally.
Oh and a whole bunch of diasassembling-fun of NandPro Cheesy
At least I learned very much doing all this stuff.

I think that the SPI protocol that is used for reading/deleting/writing is the same as in lflash, right? I haven't looked at it, as I'm not yet able to read the flashconfig reliably :-/
http://free60.git.sourceforge.net/git/gitweb.cgi?p=free60/tools;a=blob_plain;f=lflash/lflash.c;hb=HEAD

How did you find out the protocol?

were you able to get the atmega8 to work?
Logged
sandungas
Master Hacker
****
Posts: 212



View Profile
« Reply #296 on: December 08, 2009, 05:58:42 PM »

it says 47uF cap and it has a 220 resistor... which one should i follow?
Please, dont use my photo of the ART2003 programmer to make the wiring, is really $#!tty, i just uploaded it to show a (shame) example of an easy way to "build" it
...i moved the capacitor to the middle of the wires... i joined all grounds in pins 18-25 of the DB25... and tryed different capacitors <---- al this had no result, the problem was the LPT
I did some modifications to the ART2003 programmer, because i was having random conections/disconnections of the PIC device (inside winpic800) but was my mistake, none of this changes had effect
My connections problems was caused by my LPT bios settings (finally it worked with another pc)
Logged
iLLNESS
Master Hacker
****
Posts: 398


View Profile
« Reply #297 on: December 09, 2009, 05:24:01 PM »

awesome. after almost killing my 512mb jasper last night i found out about v3b plus2!

so ive got an arcade with 512mb and jasper board. i forgot about no writing with 3b and thought i fried my 360.

anyways, for anyone just jumping in.. the best thing for now for large block nands (256/512) is from cory @ http://www.xboxhacker.net/index.php?topic=12306.msg89624#msg89624 in this topic.

use the 3b plus2 binary to flash your boot with your favored programmer. use the provided drivers in nandpro2b to install the device.
grab the picflash program from the FIRST post in this thread. flash the flash file from the v3b plus2 to your usb device. and lastly, use corys modified drivers from the post i just linked.

thanks for all the info in the site guys! and thanks to the peeps on #free60/efnet who reminded me to use lpt cuz my usb programmer was nfg Wink
Logged
jhonnyp0lak
Hacker
***
Posts: 87


View Profile
« Reply #298 on: December 09, 2009, 09:34:19 PM »

iLLNESS, i got my device working last night aswell, lots of soldering, especially that i had to make my own art2003 programmer. (Sandungas thank you for the diagrams - it made the whole job 100 times easier - although as you mentioned your soldering pic is incomplete in places (e.g. the pin 8 and 19 aren't soldered together), but the technical diagram was spot on, so i used that Smiley

Anyways, I'm going to use this updated driver Smiley seems like the way to go, coz i just got a 512mb jasper. I just have 1 question. If we use these 512mb driver/pic flash combo, can we still use it on 16mb machines ? or do we need to reflash the PIC again with older code ?
Logged
iLLNESS
Master Hacker
****
Posts: 398


View Profile
« Reply #299 on: December 09, 2009, 09:40:09 PM »

iLLNESS, i got my device working last night aswell, lots of soldering, especially that i had to make my own art2003 programmer. (Sandungas thank you for the diagrams - it made the whole job 100 times easier - although as you mentioned your soldering pic is incomplete in places (e.g. the pin 8 and 19 aren't soldered together), but the technical diagram was spot on, so i used that Smiley

Anyways, I'm going to use this updated driver Smiley seems like the way to go, coz i just got a 512mb jasper. I just have 1 question. If we use these 512mb driver/pic flash combo, can we still use it on 16mb machines ? or do we need to reflash the PIC again with older code ?

i dont see why we couldnt use it. its just an updated version (unofficial) of the regular one. i dont think the 16mb nand support was removed.
Logged
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM