|
DarkstarTM
|
 |
« Reply #40 on: September 13, 2009, 07:31:23 AM » |
|
The bootloader is now in git.
|
|
|
|
|
Logged
|
|
|
|
|
Gee99x
|
 |
« Reply #41 on: September 13, 2009, 09:39:00 AM » |
|
I have built this device and can read the nand (looks fine too) but when erasing & writing I get errors in NandPro.
Error 481 when erasing & error 681 when programming.
Anyone know why?
Edit: The flash config also seems to vary. I do get 01198010 most of the time but even then it still won't erase or write.
|
|
|
|
« Last Edit: September 13, 2009, 09:49:53 AM by Gee99x »
|
Logged
|
|
|
|
|
DarkstarTM
|
 |
« Reply #42 on: September 13, 2009, 10:06:49 AM » |
|
I have built this device and can read the nand (looks fine too) but when erasing & writing I get errors in NandPro. Error 481 when erasing & error 681 when programming. Edit: The flash config also seems to vary. I do get 01198010 most of the time but even then it still won't erase or write.
Which resistors do you use to connect the PIC to your board? Please check if they are on the correct wires and also make sure your ground connection is good.
|
|
|
|
|
Logged
|
|
|
|
|
Gee99x
|
 |
« Reply #43 on: September 13, 2009, 10:25:13 AM » |
|
I'm using 100 ohm resistors and the one 10k pull-down. I should also mention that im using a 16MHz resonator but changed the frequency in WinPIC800 before writing to the PIC.
On the USB cable there is the ground (5th) wire- where should this guy be connected? I'v got the positive and negative on pins 20 & 19.
Edit: I have USB negative connected to J1D2.6 as it's the only way it gets a correct flash config. Still errors on erasing & writing. How can it be creating valid dumps but cannot erase & write? The pins are connected according to the PicXFlash readme.
|
|
|
|
« Last Edit: September 13, 2009, 11:55:21 AM by Gee99x »
|
Logged
|
|
|
|
|
cory1492
|
 |
« Reply #44 on: September 14, 2009, 11:20:51 AM » |
|
Confirming Gee99x's issue here, up till now I had not tried writing in the bootloader version (dumping worked fine) - there is definitely an issue with write, getting 681 error for every block and resulting 250 and 210 errors trying to read the corrupt data back off again. Good news is it seems at least some form of error correction is in place as no blocks got inadvertently marked as bad by mistake.
I'm going to fully dump the NAND and reflash to bootloader-less version (original source post adapted to my clock and pic, pins changed to match current) to see if that changes anything - and yep, there are no write issue. I presume either the bootloader is messing with something or usb_bus_sense/CheckUSBState() in main is throwing off the SPI timing, either rate the bad data is confined to the blocks I was messing with via write command.
Next test, try bootloader+current without using CheckUSBState(). Nope, no change, still issues - first block of NAND trashed on write, single pages trashed at intervals.
|
|
|
|
« Last Edit: September 14, 2009, 11:38:34 AM by cory1492 »
|
Logged
|
|
|
|
|
DarkstarTM
|
 |
« Reply #45 on: September 14, 2009, 11:57:35 AM » |
|
I will look into this asap. The PCBs arrived today so this will be a busy evening. Update: The sector erase function was totally broken. I don't even know why it ever worked. Please use the following file to make it work (program it via PDFSUSB.exe): http://www.megaupload.com/?d=ECLN5R5H
|
|
|
|
« Last Edit: September 14, 2009, 04:06:49 PM by DarkstarTM »
|
Logged
|
|
|
|
|
DarkstarTM
|
 |
« Reply #46 on: September 14, 2009, 04:14:11 PM » |
|
PCBs have arrived.  See main post for a picture.
|
|
|
|
|
Logged
|
|
|
|
|
B1N4RY
|
 |
« Reply #47 on: September 14, 2009, 05:45:43 PM » |
|
PCBs have arrived.  See main post for a picture. Nice, gimme one 
|
|
|
|
|
Logged
|
|
|
|
|
cory1492
|
 |
« Reply #48 on: September 14, 2009, 08:21:20 PM » |
|
Thanks Darkstar, confirm it's definitely working great now through the bootloader (r/w/e). Those PCBs turned out pretty sharp, too 
|
|
|
|
|
Logged
|
|
|
|
|
Gee99x
|
 |
« Reply #49 on: September 15, 2009, 12:10:51 AM » |
|
Thanks for the fix. Oh, and some very nice boards you have there. I can't wait for mine!! (different project) 
|
|
|
|
|
Logged
|
|
|
|
|
|
|
DarkstarTM
|
 |
« Reply #51 on: September 16, 2009, 03:57:54 AM » |
|
Looks good. The programmer link I posted was just a random example - I have no experience with PICs and PIC programmers. So if you have built a working programmer or know about a good one - please let us know!
|
|
|
|
|
Logged
|
|
|
|
|
Cpasjuste
|
 |
« Reply #52 on: September 16, 2009, 09:21:55 AM » |
|
Hi there. Could someone write an "human readable" schematic without the programmer ? (i have a willem for that). I'm not very bad with soldering, but it's not the same for reading a shematic ... so if someone could find the time to do a more detailed schematic (without the conection to the programmer, what is the usb connector (jp1?jp2) etc... ). Thanks in advance 
|
|
|
|
|
Logged
|
|
|
|
|
cory1492
|
 |
« Reply #53 on: September 16, 2009, 11:42:46 AM » |
|
I hope this helps explain it a bit better Cpasjuste. Also, usb pinout if you don't already have it. All 5V (vdd/rc2) can be tied to USB 5V, all grounds (including one from the 360 like J2B1.12) can be tied together. Important to note (just in case (tm)), D- and D+ are the USB data leads rather than sources. (updated sept 19 2009) If you aren't using a LVP there is no reason to use a 10K resistor on RB5, but it should be wired directly to ground instead.  alt if that one isn't working http://i33.tinypic.com/fm8jgg.jpgHopefully I didn't mess any of it up, let me know if something isn't clear enough (if you didn't gather, I kinda suck at diagrams.)
|
|
|
|
« Last Edit: September 19, 2009, 04:19:29 PM by cory1492 »
|
Logged
|
|
|
|
|
duggyuk
|
 |
« Reply #54 on: September 16, 2009, 02:25:21 PM » |
|
got myself an infectus but i have just wanted to say cory, that diagram is superb. i can solder well enough (self taught) but strugle to read diagrams, your picture is very good and i understand it, thank you all the same! oh and thanks to darkstar for the original 
|
|
|
|
« Last Edit: September 16, 2009, 02:30:02 PM by duggyuk »
|
Logged
|
|
|
|
|
DarkstarTM
|
 |
« Reply #55 on: September 16, 2009, 04:22:01 PM » |
|
Hopefully I didn't mess any of it up, let me know if something isn't clear enough (if you didn't gather, I kinda suck at diagrams.)
I like it. Thank you! DarkstarTM (working on JTAG...)
|
|
|
|
|
Logged
|
|
|
|
|
|
Flowmatic
Newbie

Posts: 2
|
 |
« Reply #57 on: September 17, 2009, 07:11:50 AM » |
|
Hello correct me if im worng but i think you have to connect it like this  because between pin 1 and 3 the resonance tooks place and the pin number 2 is the ground pin when im right peace mat
|
|
|
|
|
Logged
|
|
|
|
|
Gee99x
|
 |
« Reply #58 on: September 17, 2009, 07:27:05 AM » |
|
You got it right. Pin 2 goes to ground & Pins 1 & 3 connect to PIC Pins 9 & 10.
|
|
|
|
|
Logged
|
|
|
|
|
cory1492
|
 |
« Reply #59 on: September 17, 2009, 12:25:44 PM » |
|
Good to hear it will be useful, feel free to use it for your project DarkstarTM. I'll make 'addon' diagrams to it if wanted/needed for other bits as/when/if they become available. In my own case I 'salvaged' a 24MHz xtal crystal from an old PS2 multiport thing, when I wired it up I needed 2 caps to ground (which I managed to pull off a broken usb hub with a 30MHz xtal) and the two osc connectors - so I figured it would be best to not go into the oscillator on a simpler diagram as it really depends on the part. I've managed to build this on a breadboard entirely from salvage and an old set aside 18F4550 sample I had from microchip  You are right though, only two connections are needed for an oscillator, any other connections are going to be specific to the part chosen - in a resonator's case usually the middle pin just goes to ground (as is the case with the farnell one you link to.)
|
|
|
|
« Last Edit: September 17, 2009, 12:31:40 PM by cory1492 »
|
Logged
|
|
|
|
|