projects
/
fw
/
stlink
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14db250
)
Corrected F0 DBGMCU_IDCODE register address
author
Mike Szczys
<mike@jumptuck.com>
Sun, 3 Jun 2012 15:39:34 +0000
(10:39 -0500)
committer
Mike Szczys
<mike@jumptuck.com>
Sun, 3 Jun 2012 15:39:34 +0000
(10:39 -0500)
src/stlink-common.c
patch
|
blob
|
history
diff --git
a/src/stlink-common.c
b/src/stlink-common.c
index 3f8a7f0e5f9d2d684a8d364516c12885b6315742..f0a0c236e3ac60111661216a8c59c3901022611f 100644
(file)
--- a/
src/stlink-common.c
+++ b/
src/stlink-common.c
@@
-394,7
+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, 0x
E000ED00);
+ if (chip_id == 0) chip_id = stlink_read_debug32(sl, 0x
40015800); //Try Corex M0 DBGMCU_IDCODE register address
return chip_id;
}