Application won't boot when bootloader and app are using 32kHz RC oscillator. When using MPSL (BLE and IEEE802.15.4 raw) or usb_cdc.

Hi,

We're having a problem that our application will hang when using the 32 kHz RC oscillator in the mcuboot bootloader and the Zephyr application. We encountered this problem when we updated from NCS 1.5.1 to 1.8.0. 

We have looked at https://devzone.nordicsemi.com/f/nordic-q-a/81418/bug-in-ncs-v1-7-1-with-32khz-rc-oscillator-and-mcuboot-enabled and https://github.com/zephyrproject-rtos/zephyr/issues/40538 but that does not seems to fix our issue or is not included in release 1.8.0

In the supplied files is a markdown file with steps how to reproduce the problem.

What could be a temporary fix? 

What is the prospect of a permanent fix?

Best regards,

Maarten

Parents
  • Hi Hung Bui,

    I've tested and verified that your 4075merged.hex is working on my devkit. I've also tested it on a second devkit which also works.

    I've tried to reproduce the binary but my sha256 hash won't match your binary. I'm using the following setups:

    Mac: 

    arm-toolchain-9-2020-q2-update

    NCS-1.8.0

    cmake version 3.21.4

    West version: v0.11.0

    Linux Ubuntu 20.04:

    Zephyr SDK 0.13.1

    NCS-1.8.0

    cmake version 3.22.0

    West version: v0.10.1

    What setup are you using and could you try to reproduce ours? 

     

    Lastly could you specify which command you used to produce the hex file you provided? 

    Thanks!

    Best regards,

    Maarten

  • Hi Maarten, 

    I used what suggested in the howtoreproduce.md file you provided: 

    west build -p -b nrf52840dk_nrf52840 -- -DDTC_OVERLAY_FILE=console.overlay && west flash

    My set up was with NCS v1.8.0 and Zephyr v2.7.0-nc1 , mcuboot v1.7.99-ncs4

    I assume you are using https://github.com/zephyrproject-rtos/sdk-ng ? 

    Have you tried to install the toolchain using our nRF Connect Toolchain manager ? 

    I might not be able to reproduce the exact setup you have. You may want to try our downstream Zephyr : https://github.com/nrfconnect/sdk-zephyr

    Also it should be possible to debug MCUBoot to check which issue caused the crash. 

Reply Children
No Data
Related