projects
/
fw
/
stlink
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6ab5b0
)
Changed chip detection method
author
jnosky
<Jerry@CGS_Office.(none)>
Fri, 11 Nov 2011 01:15:06 +0000
(20:15 -0500)
committer
jnosky
<Jerry@CGS_Office.(none)>
Fri, 11 Nov 2011 01:15:06 +0000
(20:15 -0500)
Future plan to detect chip ID rather than core ID
src/stlink-common.c
patch
|
blob
|
history
diff --git
a/src/stlink-common.c
b/src/stlink-common.c
index ed4a197bfe80d58cddfb26d895998ea35e46145d..51f0f68b02472aad573ce4325696212b39330a23 100644
(file)
--- 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 */