@@ -359,7 +359,7 @@ Connect to the target debug port and power it up.
359
359
<control while="(ReadDP(DP_CTRL_STAT) & 0xA8000000) != 0xA8000000" timeout="300000"/>
360
360
361
361
<!-- JTAG Specific Part of sequence -->
362
- <control if="__protocol == 1">
362
+ <control if="( __protocol & 0xFFFF) == 1">
363
363
364
364
<block>
365
365
// 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.
370
370
</control>
371
371
372
372
<!-- SWD Specific Part of sequence -->
373
- <control if="__protocol == 2">
373
+ <control if="( __protocol & 0xFFFF) == 2">
374
374
375
375
<block>
376
376
// 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.
476
476
</block>
477
477
478
478
<!-- Reset Recovery: Wait for DHCSR.S_RESET_ST bit to clear on read -->
479
- <control while="(Read32(DHCSR_Addr) & 0x02000000) == 0 " timeout="500000"/>
479
+ <control while="(Read32(DHCSR_Addr) & 0x02000000)" timeout="500000"/>
480
480
481
481
</sequence>
482
482
\endcode
@@ -503,7 +503,7 @@ Execute a processor reset via software mechanisms.
503
503
</block>
504
504
505
505
<!-- Reset Recovery: Wait for DHCSR.S_RESET_ST bit to clear on read -->
506
- <control while="(Read32(DHCSR_Addr) & 0x02000000) == 0 " timeout="500000"/>
506
+ <control while="(Read32(DHCSR_Addr) & 0x02000000)" timeout="500000"/>
507
507
508
508
</sequence>
509
509
\endcode
0 commit comments