We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e58f0eb commit c637aa2Copy full SHA for c637aa2
bootloaders/zero/sam_ba_monitor.c
@@ -443,7 +443,11 @@ static void sam_ba_monitor_loop(void)
443
#ifdef ENABLE_JTAG_LOAD
444
445
if ((uint32_t)dst_addr == 0x40000) {
446
- jtagInit();
+ if (jtagInit() != 0) {
447
+ // fail!
448
+ sam_ba_putdata( ptr_monitor_if, "y\n\r", 3);
449
+ return;
450
+ }
451
452
// content of the first flash page:
453
// offset (32) : length(32) : sha256sum(256) : type (32) : force (32) = 48 bytes
0 commit comments