From: jnosky Date: Fri, 11 Nov 2011 01:15:06 +0000 (-0500) Subject: Changed chip detection method X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=b32eb29a80de6a0b9e74506eb6a97dc6bff75dbc;p=fw%2Fstlink Changed chip detection method Future plan to detect chip ID rather than core ID --- diff --git a/src/stlink-common.c b/src/stlink-common.c index ed4a197..51f0f68 100644 --- a/src/stlink-common.c +++ b/src/stlink-common.c @@ -1102,9 +1102,10 @@ int stlink_write_flash(stlink_t *sl, stm32_addr_t addr, uint8_t* base, unsigned size_t off; flash_loader_t fl; + fprintf(stdout, "WriteFlash - addr:%x len:%x\n", addr, len); + 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); /* check addr range is inside the flash */