projects
/
fw
/
stlink
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1611f5e
)
fix: chip_id now a pointer, dereference
author
texane
<texane@gmail.com>
Wed, 16 Mar 2016 19:27:37 +0000
(20:27 +0100)
committer
texane
<texane@gmail.com>
Wed, 16 Mar 2016 19:27:37 +0000
(20:27 +0100)
src/stlink-common.c
patch
|
blob
|
history
diff --git
a/src/stlink-common.c
b/src/stlink-common.c
index ecd3eb4ef1d78d7a4bf729aafaabe16bfc915945..47148614b67dab3c13a7e09b38ec97728c0c30d7 100644
(file)
--- a/
src/stlink-common.c
+++ b/
src/stlink-common.c
@@
-534,7
+534,7
@@
int stlink_chip_id(stlink_t *sl, uint32_t *chip_id) {
if (ret == -1)
return ret;
- if (chip_id == 0)
+ if (
*
chip_id == 0)
ret = stlink_read_debug32(sl, 0x40015800, chip_id); //Try Corex M0 DBGMCU_IDCODE register address
return ret;