Skip to content

Building for gd32f303

mean00 edited this page Apr 3, 2024 · 2 revisions

Building for GD32F303RCT6 (ARM)

You'll need a GD32F303RCT6 with 256kB flash and 48 kB RAM. You can use an evaluation board or the PCB given in the kicad folder

Building

You'll need

SET(USE_CLANG True CACHE INTERNAL "")

SET(USE_GD32F3 True CACHE INTERNAL "")

  • make build && cd build && cmake .. && make -j 4, you 'll end up with a .elf, .bin and .ck_bin

Pinout

  • SWDIO : PB8
  • SWDCLK : PB9
  • RESET : PB6
  • Uart : PB10 (Tx), PB11 (RX)

Rebooting to fw update

You can then upload the .ck_bin through DFU

sudo dfu-util -d 1d50:6030,1d50:6031 -s 0x08002000:leave -D swindle_default_pinout_M4_96M_CLANG.elf.ck_bin

If you are running an older version : do it once, the led will blink quickly and it may fail If so, wait 5s and do it again

Clone this wiki locally