-
Notifications
You must be signed in to change notification settings - Fork 1
Building for gd32f303
mean00 edited this page Apr 3, 2024
·
2 revisions
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
You'll need
- a recent ARM-Clang (see https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm
- rust nightly + arm toolchain
- update platformConfig.Cmake to point to your toolchain location
- Edit build_default.make , just leave
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
- SWDIO : PB8
- SWDCLK : PB9
- RESET : PB6
- Uart : PB10 (Tx), PB11 (RX)
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