XboxHacker BBS
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
June 20, 2013, 05:50:46 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 314829 times)
vgplayer
Member
**
Posts: 11


View Profile
« Reply #180 on: November 19, 2009, 04:21:46 PM »

Is it detecting as a usb device under windows, at which point you'd install the libusb drivers? Do you have Pin 1 (MCLR) pulled up? Do you have Pin 13 (RC2) connected to USB 5V (it's for usb presence sense - the bootloader doesn't use it, the xflash program does)?

Thank you.  RC2 to USB 5V is what I needed.  I said it was going to be obvious. Grin
Logged
federicobj
Newbie
*
Posts: 8


View Profile
« Reply #181 on: November 20, 2009, 03:46:43 PM »

anybody had problems with writing 256mb jasper nand??
Tried and when i read back  just FFFFF at the beginning = box not booting.
Flashed with LPT =everything fine.

i have the same proble using the USB on a jasper 512mb unind nandpro 2.0a...

heres mi experience: mother xenon 16mb...read NAND whit USB...then write xell.bin with USB...everiting woks ok and the restore the xbox with the backup of the NAND and now ists working ok.
now with another xbox with mother jasper 512mb i can rad the NAND with no problem, but when i try to write the jasper 512/256-hack.bin the xbox dosent boot anymore...then y read the NAND to see whast on it, and its all ffffffffff....it looks like the write comand doent work on jasper 512/256... anyone caold help, please !!!! thanks, federico
PS: Straßenkampf , did you try with LPT and you have no problem or you have the same problem???
PS2: sorry for my english

EDIT: i try with LPT instead of USB and works ok, now, i dont know why it doesnt work in the jasper with USB, because in a xenon i have no problem...
« Last Edit: November 20, 2009, 05:04:47 PM by federicobj » Logged
iNsAiNoNe
Newbie
*
Posts: 9


View Profile
« Reply #182 on: November 22, 2009, 01:42:15 PM »

I built the spi flasher like this


1. then i used my jdm programmer to flash PicXBoot_12.hex to the 18F2455 PIC (i changed it to 8 mhz since thats the resonator i'm using instead of the default 12)
2. then i connected the 18F2455 to my SPI flasher and connected the USB cord then installed the drivers from the Orig post http://www.megaupload.com/?d=X6TBNFDC  the device shows up as it should
3. run PDFSUSB.exe, select the only device from the drop down, select load hex picflash.hex, click program
4. removed jumper, removed usb, plug usb back in, device is now detected as "libusb-win32 devices, Memory access"
5. opened cmd prompt typed "nandpro.exe usb: -r16 nand.bin"  and i receive this error
Code:
Looking for usb interface device
Incompatible ARM hardware for this version of NandPro
Can not Continue
anyone have any ideas?
note: on step 3, i also tried to load xspiflash.hex from the nandpro folder and it fails to flash to the 18F2455 PIC
Logged
tuxuser
Hacker
***
Posts: 50


View Profile WWW
« Reply #183 on: November 22, 2009, 02:23:31 PM »

you have to use nandpro v2.0a, not v2.0b !
Logged
iNsAiNoNe
Newbie
*
Posts: 9


View Profile
« Reply #184 on: November 22, 2009, 03:08:06 PM »

using nandpro.exe with version A.    Flashed 18F2455 PIC with PICFLASH.hex v3 and now i get this error.
Code:
Looking for usb interface device
Could not detect a flash controller
Fatal Error
« Last Edit: November 22, 2009, 03:36:52 PM by iNsAiNoNe » Logged
iNsAiNoNe
Newbie
*
Posts: 9


View Profile
« Reply #185 on: November 22, 2009, 03:37:17 PM »

finally got it to read via USB.
an hour later i decided to read the readme.txt in nandpro A and it says no resistors, no diodes needed.  my problem was i had a diode on the board @ J1D2.4 from when i was doing LPT.  took the diode out and it works fine now with nandpro-a   thanks tux.  hopefully nobody else makes this dumb mistake!
Logged
jackson
Newbie
*
Posts: 5


View Profile
« Reply #186 on: November 24, 2009, 06:24:11 AM »

I have some questions about the shopping list:
Why is there a USB cable with both ends type A?
What about the LPT connector?

Anyone got pictures of the flasher built from the shopping list?


sry for the noob questions Wink
« Last Edit: November 24, 2009, 06:27:10 AM by jackson » Logged
fatjoe
Member
**
Posts: 16


View Profile
« Reply #187 on: November 25, 2009, 12:03:18 PM »

Hey,
Does anyone know if I can use these:
PIC18F242-I/SP
PIC18F252-I/SP
PIC18F442-I/P

Those are only I can find here.. Thanks for answers..
Logged
kipper2k
Member
**
Posts: 44


View Profile
« Reply #188 on: November 25, 2009, 02:20:54 PM »


This flasher can be built for about 5 Euros on breadboard (or even without breadboard). All components are available from Reichelt (Germany) or Digikey.
It takes about 5 minutes for 16 MB. The USB protocol is compatible with NandPro.

PIC Firmware
Update: PIC Source code for this board is at http://free60.git.sourceforge.net/git/gitweb.cgi?p=free60/tools;a=tree;f=picflash
The final pinmapping is at http://free60.git.sourceforge.net/git/gitweb.cgi?p=free60/tools;a=blob;f=picflash/readme.txt

Binaries (V3)
http://www.megaupload.com/?d=X6TBNFDC

Programming the PIC
See http://free60.git.sourceforge.net/git/gitweb.cgi?p=free60/tools;a=blob;f=picflash/boot/readme.txt

Update: Shopping list

For the Flasher:
1x HPR 50X100      Breadboard
1x CST 12,00      12 MHz Resonator
1x Z5U-2,5 220N      Capacitor
1x Z5U-2,5 100N      Capacitor
1x 1/4W 10K      Resistor
6x 1/4W 100      Resistor
2x SL 1X36G 2,54      Pin Headers (male)
1x PIC 18F2455-I/SP   the PIC
1x LITZE SW      Some wire
3x BL 1X10G 2,54      Pin Headers (female)
1x USB BG         USB Connector
1x AK 670/2-1,0      USB cable

For the porgrammer:
1x 74HCT 573      Driver IC
1x 1/4W 270      Resistor
1x 1/4W 1,0K      Resistor
1x D-SUB BU 25      LPT Connector

The part names are from www.reichelt.de.


i have done some looking and i cannot find a schematic to make a programmer using the parts shown in the programmer list ? is there any schematics available using these components ?  I have seen other circuits, but i just bought these parts so i am hoping to use them

Thanks

« Last Edit: November 25, 2009, 02:23:07 PM by kipper2k » Logged
Coniger12
Master Hacker
****
Posts: 148


View Profile
« Reply #189 on: November 25, 2009, 04:38:04 PM »

Surely you can't miss the picture 8 posts above yours.
I am amazed at the amount of effort you seem to show.
Logged

I like being the only person to rip from Lite-Ons using uxrip360.
ColtB45
Member
**
Posts: 11


View Profile
« Reply #190 on: November 25, 2009, 06:37:15 PM »

Here are the Eagle schematics and board files to build the SPI only version. Feel free to modify as needed.
http://uploadmirrors.com/download/1W35QVSE/Xbox 360 Mini USB SPI Flasher.zip

Note: This version uses a real crystal.

EDIT 2009/11/26 - UPDATED PARTS LIST (Some of the parts were out of stock with no scheduled restock.)
Here is the parts list:
IC1           http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=PIC18F2455-I/SP-ND
X1            http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=609-3657-ND
Q1            http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=535-9067-1-ND
S1            http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=EG4416-ND
C1, C2       http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=712-1167-1-ND
C3            http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=493-2338-1-ND
C4            http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=399-3676-1-ND
R1, R3       http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=RHM10.0KFRCT-ND
R2, R4-R7  http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=RHM100FRCT-ND
Optional:
SV1          http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=SAM1077-08-ND
IC1 Socket http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=3M5480-ND





EDIT 2009/12/11 - Board Photos

« Last Edit: December 11, 2009, 05:08:32 PM by ColtB45 » Logged
cory1492
Xbox Hacker
*****
Posts: 616


View Profile
« Reply #191 on: November 25, 2009, 07:41:46 PM »

Hey,
Does anyone know if I can use these:
PIC18F242-I/SP
PIC18F252-I/SP
PIC18F442-I/P

Those are only I can find here.. Thanks for answers..
Nope, none of those have USB. 18F2455, 18F2550, 18F4455 and 18F4550 are all from the same 'line' and are code/pin compatible with what has been posted in this thread (though 2 of them have extra pins/devices.)
Logged
droe
Newbie
*
Posts: 3


View Profile
« Reply #192 on: November 26, 2009, 07:16:54 AM »

hi cant get the usb version working ,built the breadboard with pic 18f2455 en 4 mhz resonator,flashed picboot(edited with winpic800 to 4mhz) to pic with my willem from picflashv3,gets regonized by windows as (microchip)custom usb device,then i can start usb program ,its sees PICDEM FS USB (BOOT) 0,load the picflash hex ,press execute and then i get failed to reset board, usb write failed,failed with error 997:overlapping i/o operation,and if i hit program it says usb write failed,fail with error 6,the entry is not valid,is this a pc problem,and do i have to edit the picflash also to 4mhz.i have the bootloader jumper on the board but it is if it is not responding to the jumper,so any suggestions,can i flash both the hex to the pic with the willem or do i have to use the usb programmer?and how do i know that the bootloader is working?
Logged
fatjoe
Member
**
Posts: 16


View Profile
« Reply #193 on: November 26, 2009, 07:33:29 AM »

Hey,
Does anyone know if I can use these:
PIC18F242-I/SP
PIC18F252-I/SP
PIC18F442-I/P

Those are only I can find here.. Thanks for answers..
Nope, none of those have USB. 18F2455, 18F2550, 18F4455 and 18F4550 are all from the same 'line' and are code/pin compatible with what has been posted in this thread (though 2 of them have extra pins/devices.)

OK.. thanks for answer.. So there isnt any alternative for those four? Just asking because cant find those..
Logged
Icekiller
Master Hacker
****
Posts: 184


View Profile
« Reply #194 on: November 26, 2009, 07:38:15 AM »

Hey,
Does anyone know if I can use these:
PIC18F242-I/SP
PIC18F252-I/SP
PIC18F442-I/P

Those are only I can find here.. Thanks for answers..
Nope, none of those have USB. 18F2455, 18F2550, 18F4455 and 18F4550 are all from the same 'line' and are code/pin compatible with what has been posted in this thread (though 2 of them have extra pins/devices.)

OK.. thanks for answer.. So there isnt any alternative for those four? Just asking because cant find those..

http://cgi.ebay.com/2pcs-MICROCHIP-PIC18F2455-I-SP-PIC18F2455-DIP-MCU_W0QQitemZ320441273944QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item4a9bc9ce58
ebay it..
Logged
fatjoe
Member
**
Posts: 16


View Profile
« Reply #195 on: November 26, 2009, 08:05:41 AM »

It not possible to order from ebay for me Sad But i found PIC18F2550-I/SP from local store Cheesy So is it as good as  PIC18F2455?
Logged
cory1492
Xbox Hacker
*****
Posts: 616


View Profile
« Reply #196 on: November 26, 2009, 08:15:02 AM »

droe: mentioning it yet again, the binaries posted don't work "as advertised" so the reset function from picdem does not work. Using those files you need to deal with the programming jumper and just unplug and replug after programming to get it to reset into user code - or look back through the thread to where I posted a build of what is in git where that stuff is all working. Also, the config settings in this project are only in the bootloader so there should be nothing to change in the other file - if you are getting it recognized as a usb device and/or in picdem then you've set osc. right.

fatjoe: there are alternatives, but it will require work on your part. PIC18F2550-I/SP will be fine, the only real difference to PIC18F2455 is slightly larger program flash memory (the hex should work without modifying anything except osc.)
Logged
fatjoe
Member
**
Posts: 16


View Profile
« Reply #197 on: November 26, 2009, 08:41:04 AM »

Thanks for answer! But theres more stupid questions to follow.. What do you mean by modifying osc. ? And how to i do it?
Logged
cory1492
Xbox Hacker
*****
Posts: 616


View Profile
« Reply #198 on: November 26, 2009, 10:16:47 AM »

If you don't use the recommended oscillator but rather one of the other compatible values from the data sheet, then before you flash the picboot hex file you will have to adjust the configuration setting to match the oscillator you are using. If you use winpic800 to do the programming, it's as simple as selecting your oscillator value from a drop down list in the config tab.
Logged
fatjoe
Member
**
Posts: 16


View Profile
« Reply #199 on: November 26, 2009, 12:33:42 PM »

Hmm.. Not sure if Im blind or what but why cant i find any pics from programmer  Huh
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