kopia lustrzana https://github.com/stlink-org/stlink
Changed chip detection method
Future plan to detect chip ID rather than core IDpull/24/head
rodzic
d6ab5b0c3f
commit
b32eb29a80
|
@ -1102,9 +1102,10 @@ int stlink_write_flash(stlink_t *sl, stm32_addr_t addr, uint8_t* base, unsigned
|
||||||
size_t off;
|
size_t off;
|
||||||
flash_loader_t fl;
|
flash_loader_t fl;
|
||||||
|
|
||||||
|
fprintf(stdout, "WriteFlash - addr:%x len:%x\n", addr, len);
|
||||||
|
|
||||||
stlink_identify_device(sl);
|
stlink_identify_device(sl);
|
||||||
|
|
||||||
fprintf(stdout, "WriteFlash - addr:%x len:%x\n", addr, len);
|
|
||||||
fprintf(stdout, "CoreID:%X ChipID:%X\n", sl->core_id, sl->chip_id);
|
fprintf(stdout, "CoreID:%X ChipID:%X\n", sl->core_id, sl->chip_id);
|
||||||
|
|
||||||
/* check addr range is inside the flash */
|
/* check addr range is inside the flash */
|
||||||
|
|
Ładowanie…
Reference in New Issue