Announcement

Collapse
No announcement yet.

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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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!

    #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


      #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

      Working...