From 8620efe562c9025454a549bf923351402d96c907 Mon Sep 17 00:00:00 2001 From: Daniel DeGrasse Date: Thu, 22 Jun 2023 10:02:51 -0500 Subject: [PATCH] boards: arm: mimxrt1040_evk: document M.2 WiFi module debugging issue Document issue with M.2 WiFi module, where debug connection fails using external debugger. Current workaround is to remove J80 jumper when using onboard debugger, or remove M.2 module entirely. Signed-off-by: Daniel DeGrasse --- boards/arm/mimxrt1040_evk/doc/index.rst | 26 ++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/boards/arm/mimxrt1040_evk/doc/index.rst b/boards/arm/mimxrt1040_evk/doc/index.rst index 12675aa674ce76..97f1bfb21fb2bf 100644 --- a/boards/arm/mimxrt1040_evk/doc/index.rst +++ b/boards/arm/mimxrt1040_evk/doc/index.rst @@ -274,8 +274,11 @@ should see the following message in the terminal: Troubleshooting =============== +Boot Header +----------- + If the debug probe fails to connect with the following error, it's possible -that the boot header in HyperFlash is invalid or corrupted. The boot header is +that the boot header in QSPI is invalid or corrupted. The boot header is configured by :kconfig:option:`CONFIG_NXP_IMX_RT_BOOT_HEADER`. .. code-block:: console @@ -302,6 +305,27 @@ steps: #. Reset by pressing SW1 + +WiFi Module +----------- + +If the debugger fails to connect with the following error, it's possible +the M.2 WiFi module is interfering with the debug signals + +.. code-block:: console + + Remote debugging using :2331 + Remote communication error. Target disconnected.: Connection reset by peer. + "monitor" command not supported by this target. + "monitor" command not supported by this target. + You can't do that when your target is `exec' + (gdb) Could not connect to target. + Please check power, connection and settings. + +To resolve this, you may remove the M.2 WiFi module from the board when +flashing or debugging it, or remove jumper J80. + + .. _MIMXRT1040-EVK Website: https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/i-mx-rt1040-evaluation-kit:MIMXRT1040-EVK