J
JoinTheResistance
Dead to the world, alive for the journey...
UPDATE: 09.16.2015 GUI for the xsvf app released!
I made this GUI, hopping to make the process of flashing a glitch chip with the modified nand flasher simpler. It's still in beta 0.2.1, so it still doesn't include some of the timing files, but the most used ones are there, plus it has an option to manually select a timing file. Just launch "XSVF_GUi.exe" and select the hack you want!
Download: [Click here to view this link]
Virus scan: Link
In this tutorial I'm going to cover converting a stock matrix nand spi nand flasher (and other similar devices) into a 2 in 1 nand flasher and cpld (coolrunner) programmer. Basically what this mod adds is the ability to program glitcher boards like the tx coolrunner, the matrix glitcher v1/v3 and all other similar devices. It sort of turns the matrix spi nand flasher into a low-end nand-x/j-r programmer.
Note: With this modification you can program only glitchers which are using a xc2c32a or a xc2c64a chip, examples of such glitchers are the matrix glitcher v1 and v3, cr3 lite, cr rev c/d... Boards like the x360 ace and the TX DGX/RGX, which use a xc2c128 chip, aren't supported as of yet, if you need to program such chips you will need to get a j-r programmer or a nand-x.
First, I would like to thank Nurox for posting the information and files needed to make this mod on 7s. I would also like to thank the person who came up with this mod.
This mod isn't very hard, but it can take a few hours from start to finish, depending on your skill level.
Things that you will need:
Hardware:
Soldering supplies like flux, solder, soldering iron...
A matrix SPI nand flasher, or another PIC18F2455/PIC18F2550 based nand flasher
1 300 or 400 ohm resistor
1 10uf capacitor (note that the capacitor should be 6.3V or more)
1 3.3V zener diode, like the 1n4728a. You can also use a 3.3V regulator, but it this tutorial I am going to be using a zener diode.
1 through-hole board (recommended, but to required)
A few wires
Software: [Click here to view this link]
A couple of people have requested the stock matrix firmware so I'll just post it here in case you need it.
First, what you need to do is make a small addon on a through-hole board (or just connect the components directly to the flasher if you're not using a separate board for the upgrade) following this schematic.
Note that there is another similar schematic in the pack I posted a link to above. The original diagram didn't include a 400 ohm resistor and and it had 3 regular diodes in it and I had a few problems using it. It did work, but it would sometimes give errors and the matrix nand flasher wasn't able to read nands. After adding the 400 ohm resistor and removing the 3 diodes all of those problems were fixed.
This is a diagram I have made to illustrate a few alternative points and to show what goes where on the matrix spi nand flasher. Of course you can solder directly onto the PIC chip, but to avoid messing it up I recommend using the alternative points.
Here are some more alternative points.
Ok, now let's move on to programming the PIC with the updated firmware.
The first thing that you will need to do is to enable the bootloader mode on the nand flasher. To do this short the "Boot" pad on the matrix nand flasher with a GND point, or the GND pad. You can just solder a small bridge only using solder or a wire. Another thing that you can do, which is what I actually did, is solder a switch between the boot pad and ground (GND). So after shorting the two points connect the nand flasher to your PC and install the drivers.
DRIVER INSTALLATION
The flasher should show up in device manager as "Unknown device"
Right click on it and select "Update Driver Software"
Click on "Browse my computer for driver software"
Click "Browse" and point it to the "DRIVER" folder that's located inside the "PIC FIRMWARE" folder.
Click "OK", then next and it should install the driver.
After this it should show up under "Custom Usb Devices" as "Microchip Custom Usb Device".
Flashing the updated firmware
Go in the "PIC FIRMWARE" folder and launch PDFSUSB.exe. From the drop down menu select the device called "PICDEM FS USB 0 (BOOT)".
Click on "Read device" and then on "Save To HEX file", if you want to make a backup of the old firmware.
To flash the new firmware first click on "Erase Device" after it completes click on "Load HEX File" and then click on "Program device". After it's done you can disconnect the nand flasher from the PC and un-short the boot pad from ground. After the two points are disconnected from each other reconnect the flasher to the PC. If you have the drivers from nandpro installed, uninstall them, since they will not allow you to flash CPLDs. Instead use the the drivers in the "LIBUSB_DRIVER" which is located in the "XSVF" folder. To install them just follow the instructions from before, but this time point windows to the "LIBUSB_DRIVER" folder.
If it gives you a warning about the driver's signature click on "Install this driver software anyway"
How to use the device
If you try using the modified device with j-runner you will only be able to read and write to the nand with it, it will give you a "wrong arm version", if you try to program a glitcher (coolrunner).
What you need to use instead is the program that is included with the software pack posted in the beginning of this tutorial.
**NEW** You can now use the GUI I made, instead of the command prompt.
If you want to use the "old" command line method, here are the instructions for that:
To use it simply go in the "XSVF" folder and double click on the "prompt.bat" file, a cmd window should appear. Connect the chip that you want to flash and type in "xsvf.exe" followed by the name of the file you wish to flash and hit enter. Example: xsvf.exe jasper.xsvf
Unfortunately only RGH1 files are included with this bundle, but this isn't a big problem since the RGH2 files are included with j-runner. To use them go into the j-runner folder then go into common and then xsvf, inside you will find the xsvf files you need for RGH2, copy the files from that folder into the folder where the "prompt.bat" file is located. After this is done follow the same procedure to flash the files.
Here is what it should say after a successful flash.
I'm sorry if this tutorial is too confusing for you to follow. Please let me know if you need assistance or want me to explain something in a different way.
As always feedback is welcome!
Here this is how the addon looks like on a through-hole board. The pictures below show the modification with the old and unreliable diagram, so you can ignore the diodes.
I made this GUI, hopping to make the process of flashing a glitch chip with the modified nand flasher simpler. It's still in beta 0.2.1, so it still doesn't include some of the timing files, but the most used ones are there, plus it has an option to manually select a timing file. Just launch "XSVF_GUi.exe" and select the hack you want!
Download: [Click here to view this link]
Virus scan: Link
In this tutorial I'm going to cover converting a stock matrix nand spi nand flasher (and other similar devices) into a 2 in 1 nand flasher and cpld (coolrunner) programmer. Basically what this mod adds is the ability to program glitcher boards like the tx coolrunner, the matrix glitcher v1/v3 and all other similar devices. It sort of turns the matrix spi nand flasher into a low-end nand-x/j-r programmer.
Note: With this modification you can program only glitchers which are using a xc2c32a or a xc2c64a chip, examples of such glitchers are the matrix glitcher v1 and v3, cr3 lite, cr rev c/d... Boards like the x360 ace and the TX DGX/RGX, which use a xc2c128 chip, aren't supported as of yet, if you need to program such chips you will need to get a j-r programmer or a nand-x.
First, I would like to thank Nurox for posting the information and files needed to make this mod on 7s. I would also like to thank the person who came up with this mod.
This mod isn't very hard, but it can take a few hours from start to finish, depending on your skill level.
Things that you will need:
Hardware:
Soldering supplies like flux, solder, soldering iron...
A matrix SPI nand flasher, or another PIC18F2455/PIC18F2550 based nand flasher
1 300 or 400 ohm resistor
1 10uf capacitor (note that the capacitor should be 6.3V or more)
1 3.3V zener diode, like the 1n4728a. You can also use a 3.3V regulator, but it this tutorial I am going to be using a zener diode.
1 through-hole board (recommended, but to required)
A few wires
Software: [Click here to view this link]
Beta 0.1 - First release
Download: [Click here to view this link]
Beta 0.2 - Added an option for custom files and and exit button
Download: [Click here to view this link]
Beta 0.2.1 - Tidied up the main folder and fixed a few bugs
Download: [Click here to view this link]
Download: [Click here to view this link]
Beta 0.2 - Added an option for custom files and and exit button
Download: [Click here to view this link]
Beta 0.2.1 - Tidied up the main folder and fixed a few bugs
Download: [Click here to view this link]
A couple of people have requested the stock matrix firmware so I'll just post it here in case you need it.
First, what you need to do is make a small addon on a through-hole board (or just connect the components directly to the flasher if you're not using a separate board for the upgrade) following this schematic.
Note that there is another similar schematic in the pack I posted a link to above. The original diagram didn't include a 400 ohm resistor and and it had 3 regular diodes in it and I had a few problems using it. It did work, but it would sometimes give errors and the matrix nand flasher wasn't able to read nands. After adding the 400 ohm resistor and removing the 3 diodes all of those problems were fixed.
This is a diagram I have made to illustrate a few alternative points and to show what goes where on the matrix spi nand flasher. Of course you can solder directly onto the PIC chip, but to avoid messing it up I recommend using the alternative points.
Here are some more alternative points.
Ok, now let's move on to programming the PIC with the updated firmware.
The first thing that you will need to do is to enable the bootloader mode on the nand flasher. To do this short the "Boot" pad on the matrix nand flasher with a GND point, or the GND pad. You can just solder a small bridge only using solder or a wire. Another thing that you can do, which is what I actually did, is solder a switch between the boot pad and ground (GND). So after shorting the two points connect the nand flasher to your PC and install the drivers.
DRIVER INSTALLATION
The flasher should show up in device manager as "Unknown device"
Right click on it and select "Update Driver Software"
Click on "Browse my computer for driver software"
Click "Browse" and point it to the "DRIVER" folder that's located inside the "PIC FIRMWARE" folder.
Click "OK", then next and it should install the driver.
After this it should show up under "Custom Usb Devices" as "Microchip Custom Usb Device".
Flashing the updated firmware
Go in the "PIC FIRMWARE" folder and launch PDFSUSB.exe. From the drop down menu select the device called "PICDEM FS USB 0 (BOOT)".
Click on "Read device" and then on "Save To HEX file", if you want to make a backup of the old firmware.
To flash the new firmware first click on "Erase Device" after it completes click on "Load HEX File" and then click on "Program device". After it's done you can disconnect the nand flasher from the PC and un-short the boot pad from ground. After the two points are disconnected from each other reconnect the flasher to the PC. If you have the drivers from nandpro installed, uninstall them, since they will not allow you to flash CPLDs. Instead use the the drivers in the "LIBUSB_DRIVER" which is located in the "XSVF" folder. To install them just follow the instructions from before, but this time point windows to the "LIBUSB_DRIVER" folder.
If it gives you a warning about the driver's signature click on "Install this driver software anyway"
How to use the device
If you try using the modified device with j-runner you will only be able to read and write to the nand with it, it will give you a "wrong arm version", if you try to program a glitcher (coolrunner).
What you need to use instead is the program that is included with the software pack posted in the beginning of this tutorial.
**NEW** You can now use the GUI I made, instead of the command prompt.
If you want to use the "old" command line method, here are the instructions for that:
To use it simply go in the "XSVF" folder and double click on the "prompt.bat" file, a cmd window should appear. Connect the chip that you want to flash and type in "xsvf.exe" followed by the name of the file you wish to flash and hit enter. Example: xsvf.exe jasper.xsvf
Unfortunately only RGH1 files are included with this bundle, but this isn't a big problem since the RGH2 files are included with j-runner. To use them go into the j-runner folder then go into common and then xsvf, inside you will find the xsvf files you need for RGH2, copy the files from that folder into the folder where the "prompt.bat" file is located. After this is done follow the same procedure to flash the files.
Here is what it should say after a successful flash.
I'm sorry if this tutorial is too confusing for you to follow. Please let me know if you need assistance or want me to explain something in a different way.
As always feedback is welcome!
Here this is how the addon looks like on a through-hole board. The pictures below show the modification with the old and unreliable diagram, so you can ignore the diodes.
Last edited: