[SOLVED] SystemView overflows then crashes (nRF52832+Zephyr+Bluetooth

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] SystemView overflows then crashes (nRF52832+Zephyr+Bluetooth

    Made an account to report this issue, similar to this thread: [SOLVED] SystemView Crashes

    Info:
    nRF52832 (nRF Connect SDK v2.3.0, Zephyr v3.2.99-ncs2)
    SystemView v3.50a
    J-Link Plus v11 (J-Link V7.88b)

    Description file: github.com/nrfconnect/sdk-zeph…ysview/SYSVIEW_Zephyr.txt

    We ran into some issues while evaluating SystemView (over RTT).
    It works well when Bluetooth is disabled, but enabling Bluetooth cases the issue:
    1. SystemView first reports an overflow.
    2. Data seems to become corrupted as the timestamps no longer make sense.
    3. SystemView crashes a few seconds later.
    This is the case even without an active Bluetooth connection (it is just advertising as a peripheral).
    We have tried increasing RTT UP buffer size to 4K, setting the SWD speed to 8 MHz, and disabling the more spammy events, but it does not seem to help.
  • Perhaps you have stumbled into something like my problem, see SEGGER_RTT_LOCK/UNLOCK code wrong? ? Meaning that the SEGGER_RTT_LOCK() is not effective. If the Zephyr code is comparable to SoftDevice, then the BlueTooth interrupts are running with Prio=0.

    You could try to use the code from __ARM_ARCH_6M__ (or my code) with the nRF52832 to disable interrupts during lock completely.