]> git.sur5r.net Git - openocd/commit
cortex_m: Do additional initialization during reset
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Thu, 3 Apr 2014 21:59:44 +0000 (14:59 -0700)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sat, 28 Jun 2014 09:30:09 +0000 (09:30 +0000)
commitccf4d6d64844410483d2d2513c2c4ed173604649
tree005009c8864cbbe8674692e32c910d4a91d735c8
parentd6fd5d0f9b163fc75eed96e5a8c61f5af9cf44bf
cortex_m: Do additional initialization during reset

SAM4L requires additional steps to be taken right after SYSRESETREQ is
issued in order to function robustly:

       - CMSIS-DAP DAP driver needs to explicitly check for sticky bit
         errors since it is possible for adapter to perform successful
         write opration, report no errors and then, under the hood, do
         some other things that will result in sticky bit being set.

       - Debugger needs to wait for security system to finish
         intialization and assert CDBGPWRUPACK before proceeding

This change is related to commit http://openocd.zylin.com/#/c/1995/

Change-Id: I741c95a809bfd60d930cec9482239e4796a62326
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Reviewed-on: http://openocd.zylin.com/2088
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-by: Andrey Yurovsky <yurovsky@gmail.com>
src/target/adi_v5_cmsis_dap.c
src/target/cortex_m.c
tcl/target/at91sam4lXX.cfg