Skip to content

Commit b9e1bc1

Browse files
committed
Fixed DebugPortStart, ResetSystem, and ResetProcessor default debug sequences.
1 parent 6681697 commit b9e1bc1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CMSIS/DoxyGen/Pack/src/xml_types.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ Connect to the target debug port and power it up.
359359
<control while="(ReadDP(DP_CTRL_STAT) &amp; 0xA8000000) != 0xA8000000" timeout="300000"/>
360360

361361
<!-- JTAG Specific Part of sequence -->
362-
<control if="__protocol == 1">
362+
<control if="(__protocol &amp; 0xFFFF) == 1">
363363

364364
<block>
365365
// Init AP Transfer Mode, Transaction Counter, and Lane Mask (Normal Transfer Mode, Include all Byte Lanes)
@@ -370,7 +370,7 @@ Connect to the target debug port and power it up.
370370
</control>
371371

372372
<!-- SWD Specific Part of sequence -->
373-
<control if="__protocol == 2">
373+
<control if="(__protocol &amp; 0xFFFF) == 2">
374374

375375
<block>
376376
// Init AP Transfer Mode, Transaction Counter, and Lane Mask (Normal Transfer Mode, Include all Byte Lanes)
@@ -476,7 +476,7 @@ Execute a system-wide reset via software mechanisms.
476476
</block>
477477

478478
<!-- Reset Recovery: Wait for DHCSR.S_RESET_ST bit to clear on read -->
479-
<control while="(Read32(DHCSR_Addr) &amp; 0x02000000) == 0" timeout="500000"/>
479+
<control while="(Read32(DHCSR_Addr) &amp; 0x02000000)" timeout="500000"/>
480480

481481
</sequence>
482482
\endcode
@@ -503,7 +503,7 @@ Execute a processor reset via software mechanisms.
503503
</block>
504504

505505
<!-- Reset Recovery: Wait for DHCSR.S_RESET_ST bit to clear on read -->
506-
<control while="(Read32(DHCSR_Addr) &amp; 0x02000000) == 0" timeout="500000"/>
506+
<control while="(Read32(DHCSR_Addr) &amp; 0x02000000)" timeout="500000"/>
507507

508508
</sequence>
509509
\endcode

0 commit comments

Comments
 (0)