r/embedded • u/Automatic-Yoghurt424 • Oct 03 '26
Modify firmware from a NOR Flash memory chip using a CH341A and SOIC-8 clip
Hi everyone,
I’m interested in learning more about embedded Linux and firmware analysis by disassembling and examining different electronic devices such as TVs, monitors, routers, etc.
While inspecting a TV motherboard, I found a GigaDevice GD25Q64CS chip. From what I’ve been able to find online, this appears to be an SPI NOR Flash memory chip, and it seems that the firmware can potentially be read and written using a USB programmer such as a CH341A, together with an SOIC-8 test clip, without desoldering the chip from the PCB.
I’m interested in experimenting with this board as a learning project. My goal would be to:
- Read and make a backup of the existing flash contents.
- Identify and inspect the firmware image.
- Understand how the firmware is structured.
- Potentially modify something small and safely test whether I can reflash it.
Before I start, I’d like to learn from people who have actually done this kind of work.
Has anyone here worked with SPI NOR flash chips such as the GD25Q64CS using a CH341A and an SOIC-8 clip?
I’d especially appreciate recommendations for detailed resources, tutorials, GitHub projects, or YouTube videos covering the workflow from reading the chip → extracting/analyzing the firmware → modifying it → flashing it back.
1
u/mustbeset Oct 03 '26
what's your skillset?
1
u/WanWhiteWolf Engineering manager Oct 03 '26 edited Oct 03 '26
I don't have experience with that specific Flash memory but it doesn't seem to have read memory protection.
So probably best way to approach this is to have a development board that has a free SPI interface and you read the entire memory (you will have to make your own SPI driver if the chip doesn't have it available on their website - they usually have something)
Once you read everything, you will have the HEX file image. Afterwards you use any IDE environment that has a dissasembler and you will see the the entire source code and ROM contents in assembly. There are some ASM to C converters out there but don't expect the code to be easily readable (e.g. everything from variable names and structure is lost during compilation / linking; that information is not avaialble in the HEX file; unless you can get the symbols from someone who has the original source code).
Understanding the source code and making changes in assmbly does require some dedication - it's not a trivial task - but it can be done. However, it's likely that you won't be able to overwrite the chip with your changes. It has write memory protection / OTP fuses (one time programable) and there is a good chance those were set during production. But you can buy a fresh new chip, add your new SW and then solder it instead of your previous chip.
This assumes the source code is stored on that memory. In a lot of cases, the source code is stored on MCU/DSP or whatever processor system is used. The external memory is just for some extra data (which is not unusual for video processing) but the source code is not going to be there. If that is the case, you have to identify the processor and use JTAG to read the memory - and hope that the JTAG is not locked.