How to program a specific flash region of a Nations N32G455RE MCU?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nikan.e
    Member
    • Nov 2023
    • 17
    • Germany

    #1

    How to program a specific flash region of a Nations N32G455RE MCU?

    Greetings and salutations!

    I have a device that uses an N32G455RE. Unfortunately, its flash got corrupted. I have a dump of a working chip.
    How can I program a specific region of the flash or the whole flash without touching the RAM, option registers, etc.?
    I do not have a J-Link debugger and won't buy one, as I am not rich.
    I have flashed a Nucleo board with an ST-Link to a J-Link just to find out that the ST-J-Link only supports ST chips.

    What would be the cheapest and easiest option to program the Nations chip's flash without touching registers etc.?


    I have multiple boards and programmers on hand:
    picKit 4
    NUCLEO-C031C6
    RTK9FPG021S00001BJ
    nRF52840-DK
    FRDM-MCXN947

    Any advice is welcome!
    Thanks in advance and Best Regards!
  • piernov
    Super Moderator
    • Jan 2016
    • 4439
    • France

    #2
    This looks extremely similar to an STM32 MCU, maybe even just a clone, there are multiple options to interact with it: USB (in bootloader mode with dfu-util), UART (in bootloader mode with stm32flash), SWD (maybe with STM32CubeProg or OpenOCD using an ST-Link), JTAG (possibly with OpenOCD using some sort of JTAG probe, FT2232 could be enough).
    Of course always take a full backup before doing anything.
    OpenBoardView — https://github.com/OpenBoardView/OpenBoardView

    Comment

    • Nikan.e
      Member
      • Nov 2023
      • 17
      • Germany

      #3
      You are right, It seems to be a clone. By choosing the STM32G431RB MCU in J-Flash, I was able to dump the entire 512KB of flash from the working and not-working Nations chip. Unfortunately, it is not possible to flash the chip that way; an error always occurs, but it does not specifically indicate the type of error. It is unclear if this is due to the difference in internal flash sizes of the chips or if there is an ID mismatch, etc.
      I will try the STM32CubeProg. Is there a settings file of supported chips if something has to be changed for the Nations chip to work?

      Comment

      Related Topics

      Collapse

      • ekozeko333
        [Help] Lenovo Yoga Slim 7-14ARE05 (DA0LS3MBAF0) – 25Q80DVN1G Flash Is All FF, USB-C PD Stuck at 5V
        by ekozeko333
        Hi all,
        I’m trying to recover a Lenovo Yoga Slim 7-14ARE05 with board DA0LS3MBAF0 Rev:F. I’ve run into an unusual issue where USB-C PD is stuck at 4.7–5V and the system won’t boot (keyboard lights flash briefly, then nothing).
        🔥 The Problem Started After Suspected ESD/PD Fault
        I experienced a power issue or ESD event through a USB-C charger
        After that, the NX20P5090 power switch was visibly burned and was replaced
        Now the PD controller always negotiates 5V @ 2A, even with known-good chargers
        🧠 What I’ve Done So Far
        Flashed...
        06-21-2025, 02:48 AM
      • corrize
        Nikon D800 camera - flash don’t work and capacitor don’t charge
        by corrize
        Hello, I'm stuck in troubleshooting…
        The flash system works like that : when the (mechanic) flash button is pressed, the flash mecanically pop up, and a circuit buck boost elevate 7v (batt) to 200-300v (?) for charging the big capacitor. And when the photo shoot button is pressed, the capacitor is discharged in the xeon light.

        In the D800, there is a first « power board » close to the battery. 2 wires (batt 7v) goes to another little « flash board ». I measured 7v, so ok.
        When I press the flash button, it's detected by the system, flash icon appear on LDC display....
        10-01-2022, 10:02 AM
      • cr4zychriss
        [Problem/ Request] Bricked TongFang GK7MRFR BIOS
        by cr4zychriss
        Hello everyone,
        I am requesting urgent assistance to unbrick my laptop, a rebranded TongFang GK7MRFR chassis. The laptop is completely dead following a faulty in-OS EC flash attempt.
        I have successfully used a CH341A programmer and can read/write/verify both flash chips, but using my backups/extractions has failed to restore power. The root cause is likely a corrupted Intel Management Engine (ME) region or an incompatible EC/BIOS pairing. System & Hardware Details
        • Barebone / Chassis: TongFang GK7MRFR
        • MB: MB: GK5MP5X V1.0 Prod :GK5MRFV10T04201310281
        • Rebrand: PC Specialist
        ...
        11-14-2025, 04:04 PM
      • Destroyer-Br
        [HELP] ME Region Cleaning Request – Motherboard GK5MP5X 1.0
        by Destroyer-Br
        I’m working on a laptop in which I replaced the PCH, but I’m unable to clean or rebuild the Intel ME region using FIT.
        When I load my dump into FIT, it only shows the Intel(R) ME Kernel section. The full ME region structure does not appear.

        If I manually replace the ME region inside the decomp folder and try to build the image, FIT does generate an outimage.bin, but the file is corrupted.
        After flashing it, the board does not power on — no signs of life.

        I’ve identified that the issue happens because my original dump does not contain a complete or valid ME...
        11-23-2025, 02:48 PM
      • spmetroil
        Request: SPI Flash BIOS Dump (Winbond 25Q128) for Dahua NVR4216-4KS2
        by spmetroil
        Hello,

        I am trying to repair a Dahua NVR4216-4KS2 that is not booting.
        The main BIOS/firmware is stored in an SPI flash EEPROM (Winbond 25Q128, labeled as U130 on the PCB).

        I have a CH341A programmer and I already attempted the following steps:
        1. Identified the correct chip (W25Q128, 3.3V SPI flash).
        2. Tried to read the contents with CH341A Programmer software. The dump seems corrupted and I often get the error: “Chip with the contents are in disagreement.”
        3. Compared several chip type selections (24Cxx and 25Qxx families) to confirm it is indeed a 25 series SPI
        ...
        08-19-2025, 09:23 AM
      • Loading...
      • No more items.
      Working...