Guide: Flashing with a hardware programmer

Solaris17

Administrator
Staff member
Joined
May 13, 2023
Messages
13
Lets get physical
So; you tried flashing your GPU and you didn't backup. Now you have some dude on the forum linking you a BIOS but you have no way to apply it because you don't have a spare GPU either. Well no worries friend. In this guide we are going to cover the simple procedures of recovering a BIOS with an eeprom programmer. Lets get a few things out of the way first.

It's pretty easy to get nervous or carried away when thinking about flashing a physical chip. Fear not though, once you grasp the concepts its really no different then using a USB drive. Before we cover the basics lets put your mind at ease.

How Much?
The first barrier of entry most people run into is that they think even attempting this is expensive. Lets be clear. It's not. We are not talking about this:

1.png

No, programmers come in many shapes and sizes and the type of chips they can handle can add complexity which can affect cost, but lets get to the skinny. It's not expensive. For programmers that can handle the kind of chips we will normally deal with they start at around $10usd to around $100usd for fancy things.

That's right. To fix your mistake or ensure you don't have one you literally need to spend less than $20usd. So what kind of hardware are we looking at? Lets take a look.

Time to get hard-ware

For the most part there are only a few big players.

FlashcatUSB: Flashcat is generally what I use. I own both the pro and classic editions. I prefer it when I am doing more advanced chips or JTAG work. Realistically its on the expensive side, especially if you are adding accessories. The software is good though and the product is quality. Downsides are its not very open source friendly, which means their can be cases where your chip needs to be manually input or you need to run a boundary scan. ($60USD)

CH341A: The cheapest of the lot and of varying quality this is what most will use. For between $11 and $20 USD the CH341A is affordable and robust. Unlike flashcat the CH341A uses opensource eeprom software. These software suites can vary in quality and chip support, but allows the flexibility to use whichever suite fits you the best. As an added bonus most of the time it comes with various adapters and extension cables that can come in useful at no extra charge. ($16USD)

TL866: TL866 is an older style programmer that can natively do physically larger chips. This programmer is generally used by hobbyists that work with vintage or older chips from the early compute era. However; its perfectly capable of handling newer chips with the same standard adapters the other two use. Given that its on the expensive side I would generally go with one of the other two but there really isn't anything wrong with this tool. ($35USD)

You cant go wrong with any of these, but since this guide is about accessibility we will write it using a CH341A. This is the one I bought. It was $12. It came with:
  • 1 SOP8 test clip​
  • 1 8Pin to 8Pin converter​
  • 2 SOP8 SOP16 to 8Pin converters​
  • 2 2.54mm 4Pin connectors​
To make life easy I would also pick up some jumper wires for $7 though not generally needed, if you have circuit access holes they can be easier; and once you flash you just cant stop. Probably also grab yourself a 1.8v adapter which is so cheap just get the one that includes it in the bundle.

So now that we know what we are using, what about the software? How will we write to the chip?

Burnin' For You

For software the CH341A has three primary contenders. They all serve the same basic functionality. In some cases one project may get updates before another and thus the supported chip lists can differ. Though that shouldn't be a real turn off as we will go over chip substitution later. Feel free to pick whatever tickles your fancy UI wise.

AsProgrammer: This software is what most people will start with. For no other reason then it has a lot of references and has been around awhile. That doesn't make it inherently better given that software such as NeoProgrammer generally has a more upto date chip database. With that said its simple and clean and easy to understand. So this guide will also include it.

NeoProgrammer: Relatively new compared to AsProgrammer, NeoProgrammer takes a similar GUI and makes the buttons a little 2002. The chip DB at the time of writing has a few more manufacturers. Love it? Hate it? salt to taste.

SiberiaProg: The newest in the family of CH341A programming is SiberiaProg. This software is fugly. The end.

For the purpose of this guide we are actually going to go against the grain and use "AsProgrammer" the reason being our test flashes will be on chips that it does NOT have in its DB. This will be used to illustrate a worst case scenario where you need to substitute a chip model to get the job done.


Lets get the party started

Without further adieu lets get started. So basically, we will be working with eeprom. Not to be confused with ROM or EPROM most chips on motherboards and GPUs use EEPROM. This spelling is deliberate. Now between mobos and GPUs two primary types of chips are used.

SOIC8: Used on most GPUs. 8 legs soldered to PCB.

DIP8: Used on a lot of motherboards. 8 legs socketed.

There are of course other types of chips. 16+ pins socketed and unsocketed but the two above and their applications are the most common. Lastly are the voltages. As alluded to earlier there are two primary voltages that these chips operate on. Like the chip type (package) this can vary, but for the most part you will be touching either 3.3v or 1.8v chips. For now we wont worry about it. After all you might be reading this losing your mind because your GPU is dead.

Lets start with the reader itself. We will want to use the alligator clips. So lets get the clips and the adapter mounted on the machine.

2.jpeg

For the most part we are going to want the clips in the 25xx position. You can see the position written on the PCB, or just like the picture. Closest to the USB slot. :)

3.jpeg

As you may notice the clips have a single red wire. This is what we will be using as "Pin 1" on our BIOS chips.

All connected? Good lets get the driver installed. Now, like most programming software, its meant for different devices and tools. There is no one stop shop. So we will install the driver via device manager.

4.png

There it is! Isn't he cute?

5.png

Now right click and select "Update Driver" then navigate to the directory you have "AsProgrammer" in. Remember to unzip it first!

6.png


7.png

Now select the parent folder. (It will search sub folders for you.)

8.png

Now go ahead and hit "Next".

9.png

Nice! Now we can break things!

10.png

11.png


Down the rabbit hole

Now that we have the driver installed for our reader. Its time to connect our device. In my case we will be using an Intel A380 GPU. First we need to examine it to find the BIOS chip. This can be tricky; as mentioned they can some in different shapes and sizes. For the most part though they should look a little something like this.

12.png
If it helps the general manufacturers and the coding they use on the chip are:

Winbond (Winbond/W25)

Integrated Silicon Solution Inc (IS25)
Chingis Technology (Pm25)
PUYA (PUYA/P25)

In most cases you will come across a Winbond chip. Once you find it we want to connect to it. You know how USB A only fits one way? Same thing. We want to make sure pin 1, or in our case the red wire on our clip connects to pin 1 on the chip. How do we do that? Simple. They are marked. There will be a dot, physical or paint next to what "Pin 1" should be. In some cases like the picture above as one such example. You can also make out the arrow painted on the PCB pointing to PIN 1. Below is an example of a painted dot.


13.png

Neat.

futurama-bender-neat2.gif


Once you have it all connected it should look something like this. Notice how my red wire is visible? Make sure that it corresponds to the Pin 1 markings I explained above.

15.jpeg

Now that we are all connected and plugged in. Lets open our programming software. We are going to want to read the chip to make sure we can talk to it, and to see if any info is on it.

16.png

Nice now go ahead and press the button. Oh man, nothing is happening and the logs at the bottom say this.

17.png

Looks like the chip isnt auto detected. Sad times. We need to write down or look at the photo that we took of the chip to get the name. You remembered to do that right? Perfect.

In my case the Asrock A380 uses a Winbond 25Q64JVSIQ. So lets see if we can go look for that in AsProgrammer.

18.png

Oh no! Our chip isn't listed! BUT thats ok! Welcome to the world of SPI programming. What we CAN do is look up the data sheet. Sometimes these include "Family" names. With these we can identify another chip on the list to use. Now in my case part of the name is "25Q64JV" Well we dont have a "JV" but we DO have "BV", "CV" and "FV". Lets just try one to see what we get. Select the chip from the list and attempt to read it again.


I got a bunch of gibberish :(

19.png

Sick! That's your BIOS my dude! Anything readable? Sometimes they sign it. Lets try "Intel"

20.png

Nice! Now lets do the responsible thing and back this up. I mean since your already here, its not a stretch to think you will save it in your recycle bin, but lets try to keep it somewhere safe. To do this we will just hit the "Save" button, since we already read the chip.

21.png

Look at you; you did it!

22.png

Alright, so now we have to fix your bad flash or otherwise put on your new BIOS right? Well slow your roll kid. We need to do some prelim stuff. Now when data is written sometimes the BIOS are smaller than the chip being written to. Get it? So if we have a bad flash or we are using a totally different BIOS we have no guarantee that everything will be over written, or even that there wont be extra bits left over. So what do we do?

We wipe the chip first.

23.png

Oh yeah bud, your gonna want to do that.

24.png

Now that its done, do me a solid and read the chip again.

25.png

Well how we do?

26.png

Oh yeah, this is hella broken now. Perfect. I like my chips squeaky clean. Now lets bring your stuff back to life. I am assuming you have a backup (lol you dont) or someone gave you one (thank them) so we are now going to hit the "Open" button and select our file.

27.png

Your programmers hex view should now fill with gibberish again.

28.png

Sick. Now we want to write all this data to the chip.

29.png

Oh yeah bud.

30.png

Now just sit back and be anxious for a bit. It should be noted, if you haven't noticed already your programmer probably has an LED like a hard drive light that blinks anytime you read, wipe, write to the chip. Go look at that if you need a distraction.

31.png

Oh snap our progress bar says done! Look at the log window!

success.png


Sickkkk, now go plug your GPU in and enjoy playing PUBG badly.

It can all seem pretty complex but what did you really do? Lets break it down.

  • You bought a tool for $11
  • You installed a driver
  • You attached a clip
  • You pressed read
  • You pressed erase
  • You pressed write
Thats it. Dont sweat it, its just computer parts. Your mad and frustrated because you bricked your stuff. Its not rocket science though. I pulled this GPU out of the closet and iv had 3 beers since I began writing it. Not to mention Its 12:37am I should have been to sleep hours ago.

At the end of the day invest in this now. Just backup your stuff in GPU-Z or spend $11 before you ruin hundreds worth of equipment. Might even be good just to have it on hand.

Q/A

Q: Can I apply this same technique to mobo BIOS?
A: Yup sure can! Any writable chip honestly. Flash your router firmware if you want. PS3 NAND, Stereo. Go nuts.

Q: Did you know you missed "save" in the bullet list at the end?
A: I didn't miss it. You and I both know your only here because you flashed from windows on your barely stable overclock and now your GPU is trashed.


Random Errors & Troubleshooting

I'll write the rest later, I'm tired and want to sleep.
 

Attachments

  • 14.gif
    14.gif
    68.1 KB · Views: 123
  • 32.png
    32.png
    12.8 KB · Views: 129
Last edited:
Back
Back
Top