Author Topic: reading flash content of GD32F407zgt6  (Read 728 times)

0 Members and 1 Guest are viewing this topic.

Offline Greg JTopic starter

  • Regular Contributor
  • *
  • Posts: 101
  • Country: gb
  • Hi there
reading flash content of GD32F407zgt6
« on: August 02, 2024, 11:58:04 am »
I got a chinese made device , with GD32F407zgt6 on board.
It's got port that's labelled OSBDM(1) on the PCB and a reset switch next to it.
This port has all JTAG pins of the uC exposed:
OSBDM1 connector on board

top row: PA14/SWCLK,   PA13/SWDIO,   PA15/JDTI,   NRST/RESET(also button next to the socket),   VDDA
bottom row: GND,   GND,   PB3/JDTO, NC,  VDD


I never delt with GD devices, it seems like an ST knockoff.

I got STLink , and some other hacking tools. Pretty sure they didn't bother to protect it using fuses etc. Firmware can be updated via USB.
How would you suggest I go about extracting the firmware ?

Hydrabus, stlink, other means?

Please help :)

--
Take It EV
 

Offline peter-h

  • Super Contributor
  • ***
  • Posts: 4118
  • Country: gb
  • Doing electronics since the 1960s...
Re: reading flash content of GD32F407zgt6
« Reply #1 on: August 02, 2024, 01:06:23 pm »
Maybe this chip?
https://www.eevblog.com/forum/microcontrollers/opinions-on-st-32f407vgt6-versus-gigadevice-gd32f407vgt6/

It copies flash to ram at startup and runs code from ram, but ST tools like STLINK ought to be able to read the flash, if not protected?

Quote
Firmware can be updated via USB

You can still do that even with L2 protection enabled, because internal code can write the cpu flash. Obviously the firmware would be crypto protected...
« Last Edit: August 02, 2024, 01:13:09 pm by peter-h »
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline Greg JTopic starter

  • Regular Contributor
  • *
  • Posts: 101
  • Country: gb
  • Hi there
Re: reading flash content of GD32F407zgt6
« Reply #2 on: August 02, 2024, 02:35:25 pm »
Firmware files are not encrypted. I can see strings in them.

Can I read flash content using ARM SWD? or does that need full blown jtag?
--
Take It EV
 

Offline peter-h

  • Super Contributor
  • ***
  • Posts: 4118
  • Country: gb
  • Doing electronics since the 1960s...
Re: reading flash content of GD32F407zgt6
« Reply #3 on: August 02, 2024, 02:46:27 pm »
SWD is STM's version of JTAG.
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline eutectique

  • Frequent Contributor
  • **
  • Posts: 446
  • Country: be
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf