You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CortexM(sdw.Swd()).get_idcode() gets the Stlinks IDCODE(or some other value from it) rather than the target IDCODE.
To get the target IDCODE you must use: sdw.Swd().get_mem32(0xE0042000)
Consider changing the function name?
example get_idcode() = 2BA01477 (corresponding to Cortex ®-M4 with FPU r0p1) STM32F446xx
example swd.get_mem32(0xE0042000) = 10006430 (F103 XL REV.A)
The text was updated successfully, but these errors were encountered:
These are two different IDCODEs, both are from target.
get_idcode returns debug port IDCODE, which is not present anywhere in the memory. On STM32F103 the value is 0x1BA01477, with most significant nibble being the revision (so you have 2 there).
CortexM(sdw.Swd()).get_idcode()
gets the Stlinks IDCODE(or some other value from it) rather than the target IDCODE.To get the target IDCODE you must use:
sdw.Swd().get_mem32(0xE0042000)
Consider changing the function name?
example get_idcode() = 2BA01477 (corresponding to Cortex ®-M4 with FPU r0p1) STM32F446xx
example swd.get_mem32(0xE0042000) = 10006430 (F103 XL REV.A)
The text was updated successfully, but these errors were encountered: