Skip to content

Commit 44797d7

Browse files
committed
U2 flash fix (shouldn't fix the issue\!). Added some debug.
1 parent d60f7b1 commit 44797d7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

software/application/1st_boot/boot1.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ int main(int argc, char **argv)
8787
int flash_type = 0;
8888
if(manuf == 0x1F) { // Atmel
8989
read_boot2 = 0x030A2800;
90-
read_appl = 0x03200000;
90+
read_appl = 0x030BE000;
9191

9292
// protect flash the Atmel way
9393
SPI_FLASH_CTRL = SPI_FORCE_SS; // drive CSn low

software/application/2nd_boot/boot.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ int try_flash(void)
156156
printf("Application length = %08x, version %s\n", length, (char *)version+4);
157157
if(length != 0xFFFFFFFF) {
158158
flash->read_dev_addr(image_addr.device_addr+16, length, (void *)APPLICATION_RUN_ADDRESS); // we should use flash->read_image here
159-
159+
uint8_t *app = (uint8_t *)APPLICATION_RUN_ADDRESS;
160+
dump_hex(app, 32);
161+
dump_hex(app+length-32, 32);
160162
jump_run(APPLICATION_RUN_ADDRESS);
161163
return 1;
162164
}

0 commit comments

Comments
 (0)