Commit 26301c4
target/cortex_m: fix soft_reset_halt
in GDB event "gdb-flash-erase-start", a soft reset dont perform correctly target need to halt
Unfortunately, the execution of soft reset fails with time out error
(after 100 ms: S_HALT not raised => Target not halted => reset not performed).
After investigation, Accordingly to ARM DDI0403E.B, chapter “B3.2.6 Application Interrupt and Reset Control Register,
AIRCR” before setting DEMCR.VC_CORERESET to perform local system reset,
we must halt the core otherwisethe behavior is unpredictable.
Change-Id: I440c66dca5effa2079ae330a31e2311525539e29
Signed-off-by: fedi BOUZAZI <fedi.bouzazi@st.com>1 parent 17ad4a0 commit 26301c4
1 file changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1041 | 1041 | | |
1042 | 1042 | | |
1043 | 1043 | | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
1044 | 1067 | | |
1045 | 1068 | | |
1046 | 1069 | | |
| |||
1057 | 1080 | | |
1058 | 1081 | | |
1059 | 1082 | | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
1060 | 1086 | | |
1061 | 1087 | | |
1062 | 1088 | | |
| |||
0 commit comments