Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[feature] Support for GD32F130 #724

@EmerickH

Description

@EmerickH
  • Programmer/board type: Stlink v2
  • Programmer firmware version: Last one
  • Operating system: Linux
  • Stlink tools version and/or git commit hash: st-flash 1.4.0-41-ge147a8e
  • Stlink commandline tool name: st-flash
  • Target chip (and optional board): GD32F130C8 (clone of STM32F103C8)

Output:

> st-flash --reset write build/hover.bin 0x8000000
st-flash 1.4.0-41-ge147a8e
2018-07-15T12:27:50 INFO common.c: Loading device parameters....
2018-07-15T12:27:50 INFO common.c: Device connected is: F1 Medium-density device, id 0x13030410
2018-07-15T12:27:50 INFO common.c: SRAM size: 0x5000 bytes (20 KiB), Flash: 0x10000 bytes (64 KiB) in pages of 1024 bytes
2018-07-15T12:27:50 INFO common.c: Attempting to write 15404 (0x3c2c) bytes to stm32 address: 134217728 (0x8000000)
Flash page at addr: 0x08003c00 erased
2018-07-15T12:27:50 INFO common.c: Finished erasing 16 pages of 1024 (0x400) bytes
2018-07-15T12:27:50 INFO common.c: Starting Flash write for VL/F0/F3/F1_XL core id
2018-07-15T12:27:50 INFO flash_loader.c: Successfully loaded flash loader in sram
  2/16 pages written2018-07-15T12:27:50 ERROR flash_loader.c: write error, count == 512
2018-07-15T12:27:50 ERROR common.c: stlink_flash_loader_run(0x8000800) failed! == -1
stlink_fwrite_flash() == -1 

Sometimes the count is a random number instead of 512

Expected/description:
I can't manage to flash a GD32F130C8 with st-flash with this StLink:
st-linkv2_pinout_01

  • I've connected 3v3, Gnd, SWDIO and SWCLK to the board...
  • I tried to connect also RST but it's complicated because there's no pin to solder
  • I tried to flash it on Windows with STM32 ST-LINK Utility, same problem: only a few bytes are written then it's only FFFFF...
  • I tried multiples bin files (hello world, already made firmwares...)
    Have you got any idea of what's wrong?

Metadata

Metadata

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions