projects
/
fw
/
stlink
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a303d9f
)
[ update ] F0 chip id
author
Fabien Le Mentec
<texane@gmail.com>
Sun, 3 Jun 2012 06:40:27 +0000
(
01:40
-0500)
committer
Fabien Le Mentec
<texane@gmail.com>
Sun, 3 Jun 2012 06:40:27 +0000
(
01:40
-0500)
src/stlink-common.c
patch
|
blob
|
history
diff --git
a/src/stlink-common.c
b/src/stlink-common.c
index 29640fd70222e5a1a035058e3c0b26a8a1f168f0..3f8a7f0e5f9d2d684a8d364516c12885b6315742 100644
(file)
--- a/
src/stlink-common.c
+++ b/
src/stlink-common.c
@@
-394,6
+394,7
@@
uint32_t stlink_core_id(stlink_t *sl) {
uint32_t stlink_chip_id(stlink_t *sl) {
uint32_t chip_id = stlink_read_debug32(sl, 0xE0042000);
+ if (chip_id == 0) chip_id = stlink_read_debug32(sl, 0xE000ED00);
return chip_id;
}