Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

West debug does not work with Bluetooth shell and nRF52840 DK #33381

Closed
mkarhumaa opened this issue Mar 16, 2021 · 3 comments
Closed

West debug does not work with Bluetooth shell and nRF52840 DK #33381

mkarhumaa opened this issue Mar 16, 2021 · 3 comments
Assignees
Labels
area: Architectures area: ARM ARM (32-bit) Architecture bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug

Comments

@mkarhumaa
Copy link
Contributor

Describe the bug
west debug does not work anymore with Bluetooth shell on nRF52840 DK. According to git bisect, commit enabling null pointer detection in tests caused this problem.

Inspired by this change I was able to figure out workaround that fixes the problem:

diff --git a/boards/arm/nrf52840dk_nrf52840/Kconfig.defconfig b/boards/arm/nrf52840dk_nrf52840/Kconfig.defconfig
index bc06b9074f..0192cd9217 100644
--- a/boards/arm/nrf52840dk_nrf52840/Kconfig.defconfig
+++ b/boards/arm/nrf52840dk_nrf52840/Kconfig.defconfig
@@ -21,4 +21,8 @@ endif # USB
 config BT_CTLR
        default BT
+choice CORTEX_M_DEBUG_NULL_POINTER_EXCEPTION_DETECTION
+       default CORTEX_M_DEBUG_NULL_POINTER_EXCEPTION_DETECTION_NONE
+endchoice
+
 endif # BOARD_NRF52840DK_NRF52840

To Reproduce
Steps to reproduce the behavior:

  1. cd tests/bluetooth/shell
  2. west build -b nrf52840dk_nrf52840
  3. open console for shell: sudo minicom -D /dev/ttyACM0 -b 115200
  4. west debug
  5. In gdb prompt type continue to try to start running the program
  6. Interactive shell does not start

Expected behavior
When typing "continue" in gdb test application, Bluetooth shell in this case, should start running.

Impact
annoyance, workaround exists

Environment (please complete the following information):

  • OS: Linux
  • Toolchain: Zephyr SDK
  • Commit: master (4aed856)
@mkarhumaa mkarhumaa added the bug The issue is a bug, or the PR is fixing a bug label Mar 16, 2021
@galak galak added the priority: low Low impact/importance bug label Mar 16, 2021
@carlescufi
Copy link
Member

I am hitting this as well, and I would say this is at least medium prio, it's breaking the Bluetooth shell for most of us.

@github-actions
Copy link

This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.

@github-actions github-actions bot added the Stale label May 16, 2021
@nashif nashif removed the Stale label May 25, 2021
@nashif
Copy link
Member

nashif commented May 25, 2021

close as duplicate to #34222

@nashif nashif closed this as completed May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Architectures area: ARM ARM (32-bit) Architecture bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug
Projects
None yet
Development

No branches or pull requests

5 participants