peripheral_hids_keyboard sample: Different flashing behaviour in Vscode vs Ozone

Hello,

I am using nRF Connect 2.5.2 with a Xiao Seeed BLE Sense nRF52840 and Jlink EDU mini

I am trying to flash the peripheral_hids_keyboard sample with Ozone, and I immediately hit a hard fault (escalation of a fault with configurable priority that cannot be handled)

I can flash the peripheral_hids_keyboard sample using Vscode (nrfjprog / West) and debug successfully.  I can even flash with Vscode and attach to process with Ozone.

Ozone also worked fine to flash other samples (lsm6dsl)

I am confused why Ozone can't flash the peripheral_hids_keyboard sample, and what Ozone is doing differently than Vscode / nrfjprog

Thanks!

Parents
  • Ok! I had some time to dig further into this over the last few days and I've figured it ou.

    There were two issues. 

    The first issue: vscode was not flashing correctly over jlink (and Ozone was). This was due to the default board settings. Updating the config with these settings resolved that:

    CONFIG_BUILD_OUTPUT_UF2=n
    CONFIG_USE_DT_CODE_PARTITION=n
    The second issue: Ozone hard fault after resuming a breakpoint. This was the issue that you pointed out. It doesn't happen in VCS because monitor mode debugging is used. If I enable that in Ozone, I get the same behavior (no hard fault)
    Exec.Command ("SetMonModeDebug = 1");
  • Reply
    • Ok! I had some time to dig further into this over the last few days and I've figured it ou.

      There were two issues. 

      The first issue: vscode was not flashing correctly over jlink (and Ozone was). This was due to the default board settings. Updating the config with these settings resolved that:

      CONFIG_BUILD_OUTPUT_UF2=n
      CONFIG_USE_DT_CODE_PARTITION=n
      The second issue: Ozone hard fault after resuming a breakpoint. This was the issue that you pointed out. It doesn't happen in VCS because monitor mode debugging is used. If I enable that in Ozone, I get the same behavior (no hard fault)
      Exec.Command ("SetMonModeDebug = 1");
    Children
    No Data
    Related