Skip to content

Commit 4cd3f7d

Browse files
committed
Adds nrf52 support
1 parent fb0b872 commit 4cd3f7d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmd/flash/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ fn flashcmd(
285285
let f3 = regex::Regex::new(r"find target/stm32f3").unwrap();
286286
let f4 = regex::Regex::new(r"find target/stm32f4").unwrap();
287287
let g0 = regex::Regex::new(r"find target/stm32g0").unwrap();
288+
let nr = regex::Regex::new(r"find target/nrf52").unwrap();
288289

289290
let mut c: Option<String> = None;
290291

@@ -305,6 +306,10 @@ fn flashcmd(
305306
c = Some("STM32G030C6Tx".to_string());
306307
break;
307308
}
309+
if nr.is_match(s) {
310+
c = Some("nrf52840_xxAA".to_string());
311+
break;
312+
}
308313
}
309314

310315
if c.is_none() {

0 commit comments

Comments
 (0)