XboxHacker BBS
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 18, 2013, 07:00:23 AM


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 307916 times)
gepal
Hacker
***
Posts: 52

no


View Profile
« Reply #360 on: December 17, 2009, 09:32:10 AM »

dumps are usually binary, hex files are basically text.. it's normal that they don't match up.
use the verify function to be sure.

By saying "dump" I mean read PIC/save to file with winpic800. And no, dump is not binary, but hex as source is.
Most visible difference between dump and original file is that header in original is in the beginning of the file and in dump header is in the end.
Yes they don't match but I also see differences in the body.

Also interesting thing is comparing disassembled files, dumped one and original. They are identical !!

So I guess I need to look deeper into wiring of flasher because PIC programmer works as expected.

edit: Wiring seems OK. I was thinking that there is problem with resonator, so I changed it to oscillator with 22pf capacitors wired to the ground. Problem still remains. Anyone have ideas ?
« Last Edit: December 17, 2009, 10:19:09 AM by gepal » Logged

no
maximilian0017
Xbox Hacker
*****
Posts: 684


View Profile
« Reply #361 on: December 17, 2009, 10:54:36 AM »

Anyone have ideas ?

Sometimes USB de vices give a VID/PID of 0000 because the cable is broken or the processor isn't (correctly)running.

Would check the following:
USB wiring(data wires wrong way around) and 5v/gnd
Crystal/capacitor setup
Make sure that while programming you select the correct oscillator

And try without a xbox connected

With a picture of your setup we could probably help more
Logged
SpikedCola
Member
**
Posts: 44


View Profile
« Reply #362 on: December 17, 2009, 02:56:27 PM »

Built the circuit on a breadboard, flashed the bootloader, and it worked the first try! So I decided to design a small board for it:





On my way to school to etch it now. More pictures to follow Smiley
Logged
nicmon
Member
**
Posts: 13


View Profile
« Reply #363 on: December 17, 2009, 04:06:06 PM »

Hi, is there any other variant of PIC18F2455 that we could use instead? e.g. PIC18F2550

any help will be appreciated
Logged
docentore
Member
**
Posts: 24


View Profile
« Reply #364 on: December 17, 2009, 04:44:10 PM »

Hi, is there any other variant of PIC18F2455 that we could use instead? e.g. PIC18F2550

any help will be appreciated

I don't want to be rude, I am looking for some info as well, but before asking I read the whole thread twice, and then if info was missing or I didn't understand something I asked. I would suggesting doing the same, answer to your question was given good few times.
Logged
gepal
Hacker
***
Posts: 52

no


View Profile
« Reply #365 on: December 17, 2009, 04:46:16 PM »

Built the circuit on a breadboard, flashed the bootloader, and it worked the first try! So I decided to design a small board for it:





On my way to school to etch it now. More pictures to follow Smiley

your schematics shows xtal with caps, but board itself is designed to use resonator.
where is typo ? Smiley
Logged

no
SpikedCola
Member
**
Posts: 44


View Profile
« Reply #366 on: December 17, 2009, 05:30:14 PM »

What you see on the schematic is the 'internal view' of a resonator - a resonator consists of a crystal and the two caps in one package.
Logged
gepal
Hacker
***
Posts: 52

no


View Profile
« Reply #367 on: December 17, 2009, 05:58:17 PM »

What you see on the schematic is the 'internal view' of a resonator - a resonator consists of a crystal and the two caps in one package.

I know internals of tripod resonator. I also know how tripod resonator is displayed in schematics. Only want to note that board and schematic do not match at this point.
People may be confused when looking at those pictures.
Logged

no
Arakon
Administrator
Xbox Hacker
*****
Posts: 6925


View Profile
« Reply #368 on: December 21, 2009, 12:35:21 PM »

I'd recommend going for xtal and caps instead of the resonator. I rebuilt my constantly erroring programmer earlier, using the xtal instead of the resonator, and it works perfectly.
Logged

I do NOT give support by email, PM, ICQ or whatever. Anyone annoying me that way will have his balls removed. With a rusty butterknife. Slowly. And I'll enjoy doing it.
gepal
Hacker
***
Posts: 52

no


View Profile
« Reply #369 on: December 21, 2009, 04:05:45 PM »

dumps are usually binary, hex files are basically text.. it's normal that they don't match up.
use the verify function to be sure.

By saying "dump" I mean read PIC/save to file with winpic800. And no, dump is not binary, but hex as source is.
Most visible difference between dump and original file is that header in original is in the beginning of the file and in dump header is in the end.
Yes they don't match but I also see differences in the body.

Also interesting thing is comparing disassembled files, dumped one and original. They are identical !!

So I guess I need to look deeper into wiring of flasher because PIC programmer works as expected.

edit: Wiring seems OK. I was thinking that there is problem with resonator, so I changed it to oscillator with 22pf capacitors wired to the ground. Problem still remains. Anyone have ideas ?


Problem solved. I added USB-B into board and used whole USB cable instead of soldered-in USB cable.
Successfully used flasher to uncripple hdd.

Here is setup of my board:


Logged

no
icuithink
Master Hacker
****
Posts: 213


View Profile
« Reply #370 on: December 22, 2009, 05:48:26 PM »

anyone selling usb Nand readers i have dumped mine with lpt but it takes way to long
Logged

What thats broke ill buy it
maximilian0017
Xbox Hacker
*****
Posts: 684


View Profile
« Reply #371 on: December 22, 2009, 06:10:42 PM »

Looks like the board went back to a backup as my last post here has dissapeared, well ok, lets type it again:

Really like the PCB, Few idea's:
1. Xtal would be better, or you could at least modify the pcb so it can take Xtal/Capacitor too
2. Maby you could also add a pinhearder for the serial debug mode(rx/tx) with a pinhearder to enable/disable it.
(hopefully someone will program it into the firmware,

Hope you will also sell bare pcb's, would be interested.
Logged
Arakon
Administrator
Xbox Hacker
*****
Posts: 6925


View Profile
« Reply #372 on: December 22, 2009, 06:27:57 PM »

All posts related to buying or selling these are in General 360 now. This is a technical thread, not a shop.
Logged

I do NOT give support by email, PM, ICQ or whatever. Anyone annoying me that way will have his balls removed. With a rusty butterknife. Slowly. And I'll enjoy doing it.
MrBrown666
Newbie
*
Posts: 3


View Profile
« Reply #373 on: December 22, 2009, 08:43:27 PM »

hi everybody,

I did some homebrew etching to make a some PCBs. looks like this:


It's designed very close to DarkstarTM's schematic

if anyone wants to try, here is my stencil:
http://img97.imageshack.us/img97/4972/nandflashervorlage.pdf

and here the component diagram:

(the blue line is a jumper wire)
Logged
sandungas
Master Hacker
****
Posts: 212



View Profile
« Reply #374 on: December 22, 2009, 08:49:28 PM »

First time i built the "mini-board" was to confirm that the drawing i did was right ---> http://www.xboxhacker.net/index.php?topic=12306.msg90216#msg90216
After this... i was thinking how to mount it permanently inside the case, and this is the result


Now im working in a case for the usb-flasher (to be installed permanently inside the 360)

*I will upload photos of the usb-flasher case when will be finished

The cable



*I will upload an updated diagram in few days, a bit more simplified, and with some variations (4 drawings)
Logged
joeyddr
Master Hacker
****
Posts: 134


View Profile
« Reply #375 on: December 22, 2009, 09:06:26 PM »

hi everybody,

I did some homebrew etching to make a some PCBs. looks like this:


It's designed very close to DarkstarTM's schematic

if anyone wants to try, here is my stencil:
http://img97.imageshack.us/img97/4972/nandflashervorlage.pdf

and here the component diagram:

(the blue line is a jumper wire)

according to  the initial diagram you have you caps swapped
Logged
MrBrown666
Newbie
*
Posts: 3


View Profile
« Reply #376 on: December 22, 2009, 10:15:26 PM »

ok ok maybe it's not thaaat close to the schematics.
i relocated the capacitors to solve some routing problems. trust me it is connected properly. this way it uses only 1 jumper wire instead of 2.

EDIT: ok i just checked my board and guess what. i really did swap the capacitors. it's right in the diagram i posted but i placed them like in the original schematic when i soldered them. but it still works. i dumped my nand 3 times without any unusual errors and flashed one block to unlock my HDD without any errors.
« Last Edit: December 22, 2009, 11:25:22 PM by MrBrown666 » Logged
d4m4n
Master Hacker
****
Posts: 135


View Profile
« Reply #377 on: December 23, 2009, 06:12:44 AM »

Phew... finally got it working. I had big problems with ART2003 programmer and WinPic800. The fix was to change the hardware settings "Use Vdd" and "Use Mclr" both to on or off if I got an error message. These setting sometimes had to be on and sometimes off for the same function (read, erase, program, verify).
Logged
Dream
Master Hacker
****
Posts: 435



View Profile
« Reply #378 on: December 23, 2009, 04:00:48 PM »

Thanks and merry xmas.
USB SPI works great and one 16mb nand dump time was 6 min 35 Sec.
Love your work guys.

http://dream.pic.fi/kuvat/Xbox%20360/HiTec%20XBReboot%200.05/Dream%20USB%20mKo%20Nand%20Dump/
Logged
maximilian0017
Xbox Hacker
*****
Posts: 684


View Profile
« Reply #379 on: December 23, 2009, 04:39:41 PM »

Pin18 = rb7/pic uart rx (18F2455)
Pin17 = rb6/pic uart tx

Shouldn't that be:
Pin18 = RC7/pic uart rx
Pin17 = RC6/pic uart tx

And witch unused pin could we best use for switching between USB-Serial and USB-SPI?
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