Skip to content

Commit 63b02c8

Browse files
committed
Fix rp2350-riscv svd selection
Signed-off-by: paulober <[email protected]>
1 parent 39c2e61 commit 63b02c8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/commands/getPaths.mts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,12 +494,14 @@ export class GetSVDPathCommand extends CommandWithResult<string | undefined> {
494494
return;
495495
}
496496

497+
const theChip = chip === "rp2350-riscv" ? "rp2350" : chip;
498+
497499
return joinPosix(
498500
buildSDKPath(latestSDK),
499501
"src",
500-
chip,
502+
theChip,
501503
"hardware_regs",
502-
`${chip.toUpperCase()}.svd`
504+
`${theChip.toUpperCase()}.svd`
503505
);
504506
}
505507
}

0 commit comments

Comments
 (0)