Skip to content

Commit acbf2db

Browse files
committed
Don't reverse nibbles in jtagRead
1 parent fe8e0e2 commit acbf2db

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bootloaders/zero/board_driver_jtag.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,8 @@ void jtagFlashReadBlock(uint32_t offset, size_t len, uint8_t* buf)
675675

676676
uint8_t* newbuf = (uint8_t*)&rpc[3];
677677
for (int i = 0; i < len; i++) {
678-
buf[i] = reverse(newbuf[i]);
678+
//buf[i] = reverse(newbuf[i]);
679+
buf[i] = newbuf[i];
679680
}
680681
}
681682

bootloaders/zero/sam_ba_monitor.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ static void sam_ba_monitor_loop(void)
446446
jtagInit();
447447

448448
// TODO: TEMP
449-
// jtagFlashEraseBlock(LAST_FLASH_PAGE);
449+
jtagFlashEraseBlock(LAST_FLASH_PAGE);
450450
//
451451

452452
// content of the first flash page:

0 commit comments

Comments
 (0)