Zephyr nrf connect application will not start without JFlash F9 command

Hi,

A have an application on a custom board that will not start, unless I use JFlash Start Application command, or attache the debugger.
I already added CONFIG_BOARD_ENABLE_DCDC=n after reading https://devzone.nordicsemi.com/f/nordic-q-a/77570/zephyr-project-on-a-custom-board-wont-start-up-after-removing-debugger

Any other tricks?

Parents
  • And it runs without any errors what so ever in debug mode, but fails/doesn't start in release mode? What exactly does your bootloader do in your application? The config sets several required build systems and device tree options in order for the image generated to be bootable using the MCUBoot open source bootloader. Currently, this includes:

    • Setting ROM_START_OFFSET to a default value allowing space for the MCUBoot image header
    • Activating SW_VECTOR_RELAY_CLIENT on Cortex-M0 targets with no built-in vector relocation mechanisms.

    By default, this option instructs Zephyr to initialize the core architecture HW registers during boot, as long as it's supported by the application. 

    Best regards,

    Simon

Reply
  • And it runs without any errors what so ever in debug mode, but fails/doesn't start in release mode? What exactly does your bootloader do in your application? The config sets several required build systems and device tree options in order for the image generated to be bootable using the MCUBoot open source bootloader. Currently, this includes:

    • Setting ROM_START_OFFSET to a default value allowing space for the MCUBoot image header
    • Activating SW_VECTOR_RELAY_CLIENT on Cortex-M0 targets with no built-in vector relocation mechanisms.

    By default, this option instructs Zephyr to initialize the core architecture HW registers during boot, as long as it's supported by the application. 

    Best regards,

    Simon

Children
Related