DAPLink icon indicating copy to clipboard operation
DAPLink copied to clipboard

Add software auto reset to Atmel and stm32

Open Kevincoooool opened this issue 4 years ago • 3 comments

The target chip can auto reset after download with this pr

Kevincoooool avatar Mar 20 '21 08:03 Kevincoooool

This looks like a layering violation. You should look at why target_set_state(RESET_PROGRAM) (or possibly swd_set_target_state_hw(RESET_PROGRAM)) does not work in your case. Not sure if there is a generic (or HIC-specific) way to detect that hardware reset does not work and fall back to software reset.

mathias-arm avatar Apr 23 '21 20:04 mathias-arm

There was an idea to unify reset once https://github.com/ARMmbed/DAPLink/pull/371

cederom avatar Apr 24 '21 00:04 cederom

Hello, because my hardware does not set aside RST pin for DAPLINK, so I can only use SWD to perform a software reset. This PR has been tested to work normally and there is no other impact

Kevincoooool avatar Jun 28 '21 02:06 Kevincoooool