Skip to content

Commit e3d749f

Browse files
committed
Added RP2040 support
1 parent 5252894 commit e3d749f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

extras/integration_test/RpcClientTest/RpcClientTest.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
#elif ARDUINO_GIGA
77
#define MSGPACKRPC Serial1 // MsgPack RPC runs on Serial1
88
#define DEBUG SerialUSB // Debug and upload port is Serial
9+
#elif ARDUINO_NANO_RP2040_CONNECT
10+
#define MSGPACKRPC Serial1 // MsgPack RPC runs on Serial1
11+
#define DEBUG SerialUSB // Debug and upload port is Serial
912
#else
1013
#error "Unsupported board"
1114
#endif

extras/integration_test/RpcClientTest/RpcClient_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,20 @@ func getFQBNAndPorts(t *testing.T) (fqbn string, rpcPort string, uploadPort stri
160160
checkFQBN(board.Fqbn)
161161
uploadPort = port.Port.Address
162162
}
163+
if board.Fqbn == "arduino:mbed_nano:nanorp2040connect" {
164+
checkFQBN(board.Fqbn)
165+
uploadPort = port.Port.Address
166+
}
163167
}
164168
}
165169
if rpcPort == "" {
166170
for _, port := range cliResult.DetectedPorts {
167171
if port.Port.Properties.Vid == "0x0483" && port.Port.Properties.Pid == "0x374B" {
168172
rpcPort = port.Port.Address
169173
}
174+
if port.Port.Properties.Vid == "0x1A86" && port.Port.Properties.Pid == "0x55D4" {
175+
rpcPort = port.Port.Address
176+
}
170177
}
171178
}
172179
require.NotEmpty(t, uploadPort, "Upload port not found")

0 commit comments

Comments
 (0)