Changed chip detection method

Future plan to detect chip ID rather than core ID
pull/24/head
jnosky 2011-11-10 20:15:06 -05:00
rodzic d6ab5b0c3f
commit b32eb29a80
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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 */