This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Watchdog with bootloader on nRF9160

Hello,

I try to add watchdog on aws_fota sample but Something is wrong about bootloader to application transition and it always reboots.

00> [00:00:00.051,513] <inf> mcuboot: Starting bootloader

00> [00:00:00.078,887] <inf> mcuboot: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
00> [00:00:00.131,317] <inf> mcuboot: Scratch: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
00> [00:00:00.177,215] <inf> mcuboot: Boot source: primary slot
00> [00:00:00.213,653] <inf> mcuboot: Swap type: none
00> [00:00:00.558,685] <inf> mcuboot: Bootloader chainload address offset: 0xc000
00> [00:00:00.588,836] <inf> mcuboot: Jumping to the first image slot
00> *** Booting Zephyr OS build v2.0.99-ncs1-rc1-1160-gf2d732b7fa5d  ***
00>
00> [00:00:00.031,982] <inf> mcuboot: Starting bootloader
00> [00:00:00.059,387] <inf> mcuboot: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
00> [00:00:00.111,846] <inf> mcuboot: Scratch: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
00> [00:00:00.157,745] <inf> mcuboot: Boot source: primary slot
00> [00:00:00.194,213] <inf> mcuboot: Swap type: none
00> [00:00:00.543,975] <inf> mcuboot: Bootloader chainload address offset: 0xc000
00> [00:00:00.574,127] <inf> mcuboot: Jumping to the first image slot
00> *** Booting Zephyr OS build v2.0.99-ncs1-rc1-1160-gf2d732b7fa5d  ***
 

Parents
  • Hi.

    Have you set up the SPM to configure the WDT as non-secure?

    I recommend you do it by adding a configuration file for the SPM in your project directory.

    You can  do this by adding the following to your CMakeLists.txt before you include :

    set(spm_CONF_FILE
        ${CMAKE_CURRENT_SOURCE_DIR}/spm.conf
        )

    And adding a file called spm.conf in your project directory (next to your CMakeLists.txt) containing:

    CONFIG_SPM_NRF_WDT_NS=y

    If you are using SES, remember that you have to re-open your project for changes in CMakeLists.txt and configuration files to take effect.

    Best regards,

    Didrik

Reply
  • Hi.

    Have you set up the SPM to configure the WDT as non-secure?

    I recommend you do it by adding a configuration file for the SPM in your project directory.

    You can  do this by adding the following to your CMakeLists.txt before you include :

    set(spm_CONF_FILE
        ${CMAKE_CURRENT_SOURCE_DIR}/spm.conf
        )

    And adding a file called spm.conf in your project directory (next to your CMakeLists.txt) containing:

    CONFIG_SPM_NRF_WDT_NS=y

    If you are using SES, remember that you have to re-open your project for changes in CMakeLists.txt and configuration files to take effect.

    Best regards,

    Didrik

Children
No Data
Related