Skip to content

Commit 9efeefb

Browse files
authored
[cbuild-run] Fix missing debug sequences
1 parent 8150a7a commit 9efeefb

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed

test/packs/ARM/RteTest_DFP/0.2.0/ARM.RteTest_DFP.pdsc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@
8080
Message(2, "Incorrect ID! Abort connection.");
8181
</block>
8282
</control>
83+
<control while="(ReadDP(DP_CTRL_STAT) &amp; 0xA0000000) != 0xA0000000" timeout="1000000"/>
84+
<block/>
8385
</sequence>
8486

8587
<!-- default DebugPortStop extended with Option Byte Loading capability -->

tools/projmgr/src/ProjMgrCbuildRun.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ void ProjMgrCbuildRun::SetDebugSequencesNode(YAML::Node node, const std::vector<
124124

125125
void ProjMgrCbuildRun::SetDebugSequencesBlockNode(YAML::Node node, const std::vector<DebugSequencesBlockType>& blocks) {
126126
for (const auto& block : blocks) {
127-
if (block.execute.empty() && block.blocks.empty()) {
127+
if (block.execute.empty() && block.blocks.empty() && block.control_if.empty() && block.control_while.empty()) {
128128
continue;
129129
}
130130
YAML::Node blockNode;

tools/projmgr/test/data/TestRunDebug/ref/run-debug+TestHW.cbuild-run.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ cbuild-run:
8888
execute: |
8989
Query(0, "Incorrect ID! Abort connection", 1);
9090
Message(2, "Incorrect ID! Abort connection.");
91+
- while: (ReadDP(DP_CTRL_STAT) & 0xA0000000) != 0xA0000000
92+
timeout: 1000000
9193
- name: DebugPortStop
9294
blocks:
9395
- execute: |

tools/projmgr/test/data/TestRunDebug/ref/run-debug+TestHW2.cbuild-run.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ cbuild-run:
8989
execute: |
9090
Query(0, "Incorrect ID! Abort connection", 1);
9191
Message(2, "Incorrect ID! Abort connection.");
92+
- while: (ReadDP(DP_CTRL_STAT) & 0xA0000000) != 0xA0000000
93+
timeout: 1000000
9294
- name: DebugPortStop
9395
blocks:
9496
- execute: |

tools/projmgr/test/data/TestRunDebug/ref/run-debug+TestHW3.cbuild-run.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ cbuild-run:
9090
execute: |
9191
Query(0, "Incorrect ID! Abort connection", 1);
9292
Message(2, "Incorrect ID! Abort connection.");
93+
- while: (ReadDP(DP_CTRL_STAT) & 0xA0000000) != 0xA0000000
94+
timeout: 1000000
9395
- name: DebugPortStop
9496
blocks:
9597
- execute: |

0 commit comments

Comments
 (0)