Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit d03af56

Browse files
author
mean
committed
add swlink-riscv target
1 parent a637a4c commit d03af56

2 files changed

Lines changed: 28 additions & 2 deletions

File tree

cross-file/swlink-riscv.ini

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This a cross-file for the native probe. It defines a default configuration profile that
2+
# provides only support for both RISC-V architectures and support for RISC-V targets.
3+
4+
[binaries]
5+
c = 'arm-none-eabi-gcc'
6+
cpp = 'arm-none-eabi-g++'
7+
ld = 'arm-none-eabi-gcc'
8+
ar = 'arm-none-eabi-ar'
9+
nm = 'arm-none-eabi-nm'
10+
strip = 'arm-none-eabi-strip'
11+
objcopy = 'arm-none-eabi-objcopy'
12+
objdump = 'arm-none-eabi-objdump'
13+
size = 'arm-none-eabi-size'
14+
15+
[host_machine]
16+
system = 'bare-metal'
17+
cpu_family = 'arm'
18+
cpu = 'arm'
19+
endian = 'little'
20+
21+
[project options]
22+
probe = 'native'
23+
targets = 'riscv32,riscv64,gd32,rp,ch32v'
24+
rtt_support = false
25+
bmd_bootloader = true
26+
rvswd_support = true

src/platforms/swlink/platform.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ extern bool debug_bmp;
4343
#define TDI_PORT GPIOA
4444
#define TDO_PORT GPIOB
4545
#define TRST_PORT GPIOB
46-
#define TMS_PIN GPIO13
47-
#define TCK_PIN GPIO14
46+
#define TMS_PIN GPIO5
47+
#define TCK_PIN GPIO6
4848
#define TDI_PIN GPIO15
4949
#define TDO_PIN GPIO3
5050
#define TRST_PIN GPIO4

0 commit comments

Comments
 (0)