| 1 | # Flashing firmware standalone |
| 2 | |
| 3 | If none of the other methods work, there are three possibilities: |
| 4 | |
| 5 | ## Desolder |
| 6 | You must remove or desolder the flash IC before you can flash it. |
| 7 | It's recommended to solder a socket in place of the flash IC. |
| 8 | |
| 9 | When flashing the IC, always connect all input pins. |
| 10 | If in doubt, pull /WP, /HOLD, /RESET and alike up towards Vcc. |
| 11 | |
| 12 | ## SPI flash emulator |
| 13 | If you are a developer, you might want to use an [EM100Pro] instead, which sets |
| 14 | the onboard flash on hold, and allows to run custom firmware. |
| 15 | It provides a very fast development cycle without actually writing to flash. |
| 16 | |
| 17 | ## SPI flash overwrite |
| 18 | It is possible to set the onboard flash on hold and use another flash chip. |
| 19 | Connect all lines one-to-one, except /HOLD. Pull /HOLD of the soldered flash IC |
| 20 | low, and /HOLD of your replacement flash IC high. |
| 21 | |
| 22 | ### SPI header |
| 23 | Some boards feature a pin header which is connected to the SPI bus. This can |
| 24 | also be used to connect a secondary flash chip. |
| 25 | |
| 26 | #### HP boards |
| 27 | Many HP desktop mainboards have a 2x8 or 2x10 block of header pins which |
| 28 | can be used to connect a second flash chip. One pin is connected to the |
| 29 | onboard flash's /CS pin, and another is connected to the chipset's /CS |
| 30 | pin. Normally a jumper cap is placed between these pins, allowing the |
| 31 | chipset to access the onboard flash. To use this header, remove this |
| 32 | jumper and connect all lines except /CS one-to-one with the |
| 33 | corresponding pin on the header. The secondary flash chip's /CS line |
| 34 | should be connected to the chipset /CS pin on the header. By doing this |
| 35 | the secondary SPI flash, rather than the onboard flash, will respond to |
| 36 | accesses from the chipset. |
| 37 | |
| 38 | ![][hp_spi_header_pinout] |
| 39 | |
| 40 | ![][hp_spi_header_mainboard] |
| 41 | |
| 42 | Note that on boards where this header is unpopulated, a jumper resistor |
| 43 | will be populated nearby which serves the purpose of the jumper cap. One |
| 44 | end should have continuity with the /CS pin on the flash, and the other |
| 45 | end should have continuity with the chipset /CS pin on the unpopulated |
| 46 | header. It may also be possible to find this resistor through visual |
| 47 | inspection of the traces on the /CS pins. This resistor should be |
| 48 | desoldered if you wish to solder a pin header to the board and connect a |
| 49 | secondary flash, otherwise the onboard flash will always respond to |
| 50 | accesses. |
| 51 | |
| 52 | #### Other boards |
| 53 | Other boards may have similar headers, but will likely use a different |
| 54 | pinout than the ones explicitly mentioned here. Usually such a header |
| 55 | will be located near the onboard SPI flash. If schematics are available, |
| 56 | the pinout for the header will likely be found in it, but it could also |
| 57 | be determined using a multimeter in continuity mode to map out the |
| 58 | connections between the SPI flash and the header. |
| 59 | |
| 60 | |
| 61 | [EM100Pro]: https://www.dediprog.com/product/EM100Pro |
| 62 | [hp_spi_header_pinout]: hp_spi_header.svg |
| 63 | [hp_spi_header_mainboard]: hp_spi_header_mb.jpg |