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

nrfutil generate incorrect bootloader settings (for nRF52840)

Hi,

I'm having an issue with using nrfutil to generate a bootloader settings image for loading onto an nRF52840 MCU. The resulting image appears to have the wrong starting address.

Please find below the steps I followed:

1. I'm using the latest version of nrfutil, which is 6.0.1, e.g.:

2. I create the bootloader settings image for the nRF52840 MCU (SDK 16.0.0), e.g.:

nrfutil.exe settings generate --family NRF52840 --application MainModule.hex --application-version 1 --bootloader-version 1 --bl-settings-version 2  bootloader_settings.hex

Note that the bootloader settings start address indicates 0x000FF000 for the nRF52840 which matches with the SDK 16.0.0 online reference:

3. And now I display the contents of the generated bootloader settings image, e.g.:

nrfutil settings display bootloader_settings.hex

Note that the start address now indicates 0x000FE000. There is also a bad access error.

I manually looked through the INTEL hex image and the extended linear address does appear to be incorrect, e.g.:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
:02000004000FEB
:10E000002D73972C020000000100000001000000A9
:10E010000000000000000000D4200300C93D087C7F
:10E0200001000000000000000000000000000000EF
:10E0300000000000000000000000000000000000E0
:10E0400000000000000000000000000000000000D0
:10E0500000000000000000000000000000000000C0
:10E0600000000000000000000000000000000000B0
:10E0700000000000000000000000000000000000A0
:10E080000000000000000000000000000000000090
:10E090000000000000000000000000000000000080
:10E0A0000000000000000000000000000000000070
:10E0B0000000000000000000000000000000000060
:10E0C0000000000000000000000000000000000050
:10E0D0000000000000000000000000000000000040
:10E0E0000000000000000000000000000000000030
:10E0F0000000000000000000000000000000000020
:10E10000000000000000000000000000000000000F
:10E1100000000000000000000000000000000000FF
:10E1200000000000000000000000000000000000EF
:10E1300000000000000000000000000000000000DF
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Any ideas what I'm missing or doing wrong?

Thanks to all in advance.