summaryrefslogtreecommitdiff
path: root/board/nucleo-f412zg/build.mk
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2022-06-30 11:09:50 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-07 20:12:38 +0000
commit9a3c514b45976907b9bb566cf8eabf1c53a3f040 (patch)
treec2e47b15cd7f585a4b01764861cda375f1027f36 /board/nucleo-f412zg/build.mk
parenta32330b63cbf94c2314fc7bf62534ba4c7717e0d (diff)
downloadchrome-ec-9a3c514b45976907b9bb566cf8eabf1c53a3f040.tar.gz
test: Add a test to check if the debugger is connected
This is intended to make it easier to debug the behavior of is_debugger_connected(). With JLink we're seeing that C_DEBUGEN is still set even after disconnecting the JLink (see referenced bug). BRANCH=none BUG=b:180945056 TEST=On dragonclaw v0.2 with JLink and servo_micro, flash the "debug" test: Connect the debugger: JLinkExe -device STM32F412CG -if SWD -speed 4000 -autoconnect 1 J-Link>r J-Link>go Run the test on the FPMCU console: > runtest debugger => PASS Disconnect the debugger: J-Link>exit Run the test on the FPMCU console: > runtest no_debugger => PASS TEST=On icetower v0.1 with JLink and servo_micro, flash the "debug" test: Connect the debugger: JLinkExe -device STM32H743ZI -if SWD -speed 4000 -autoconnect 1 J-Link>r J-Link>go Run the test on the FPMCU console: > runtest debugger => PASS Physically disconnect the debugger and servo_micro. Then reconnect servo_micro and start servod. Run the test on the FPMCU console: > runtest no_debugger => PASS Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: I544cab5814a30310345d4337a818d7b48cc22a8b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3739316 Reviewed-by: Bobby Casey <bobbycasey@google.com>
Diffstat (limited to 'board/nucleo-f412zg/build.mk')
-rw-r--r--board/nucleo-f412zg/build.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/nucleo-f412zg/build.mk b/board/nucleo-f412zg/build.mk
index 6fa61ee41f..64a3472e5e 100644
--- a/board/nucleo-f412zg/build.mk
+++ b/board/nucleo-f412zg/build.mk
@@ -14,6 +14,7 @@ test-list-y=\
cec \
compile_time_macros \
crc \
+ debug \
flash_physical \
flash_write_protect \
mpu \