File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -65,17 +65,18 @@ proc esp32c6_soc_reset { } {
65
65
66
66
# clear dmactive to clear sbbusy otherwise debug module gets stuck
67
67
riscv dmi_write 0x10 0
68
- riscv dmi_write 0x10 1
69
- halt
68
+ riscv dmi_write 0x10 0x40000001
69
+ # Here debugger reads dmstatus as 0xc03a2
70
70
71
71
# Wait for the reset to happen
72
72
sleep 10
73
73
poll
74
+ # Here debugger reads dmstatus as 0x3a2
74
75
75
76
# Disable the watchdogs again
76
77
esp32c6_wdt_disable
77
78
78
- # Here debugger reads allresumeack and allhalted bits as set (0x330a2 )
79
+ # Here debugger reads anyhalted and allhalted bits as set (0x3a2 )
79
80
# We will clean allhalted state by resuming the core.
80
81
riscv dmi_write 0x10 0x40000001
81
82
Original file line number Diff line number Diff line change @@ -65,17 +65,18 @@ proc esp32h2_soc_reset { } {
65
65
66
66
# clear dmactive to clear sbbusy otherwise debug module gets stuck
67
67
riscv dmi_write 0x10 0
68
- riscv dmi_write 0x10 1
69
- halt
68
+ riscv dmi_write 0x10 0x40000001
69
+ # Here debugger reads dmstatus as 0xc03a2
70
70
71
71
# Wait for the reset to happen
72
72
sleep 10
73
73
poll
74
+ # Here debugger reads dmstatus as 0x3a2
74
75
75
76
# Disable the watchdogs again
76
77
esp32h2_wdt_disable
77
78
78
- # Here debugger reads allresumeack and allhalted bits as set (0x330a2 )
79
+ # Here debugger reads anyhalted and allhalted bits as set (0x3a2 )
79
80
# We will clean allhalted state by resuming the core.
80
81
riscv dmi_write 0x10 0x40000001
81
82
Original file line number Diff line number Diff line change @@ -90,8 +90,8 @@ def test_apptrace_reset(self):
90
90
trace_file .close ()
91
91
trace_src = 'file://%s' % trace_file_name
92
92
reader = reader_create (trace_src , 1.0 )
93
- # 0 ms poll period, stop when 800 bytes are received or due to 10 s timeout
94
- self .oocd .apptrace_start ("%s 0 800 10" % trace_src )
93
+ # 10 ms poll period, stop when 800 bytes are received or due to 10 s timeout
94
+ self .oocd .apptrace_start ("%s 10 800 10" % trace_src )
95
95
self .resume_exec ()
96
96
sleep (1 ) # let it works some time
97
97
self .stop_exec ()
You can’t perform that action at this time.
0 commit comments