Hello all:
I've developed an nRF52810 application based on the UART example, but when I include buttonless DFU support to my application, it doesn't work. I'm using SDK 17.0.2, SD 112 7.2.0
The instructions followed are shown here. In summary:
- Generated private/public key pair,
- replaced dfu_public_key.c for the example secure bootloader project at: <nRF5 SDK Folder>/examples/dfu/,
- built application <nRF5 SDK Folder>/examples/dfu/secure_bootloader/pca10040e_ble/ses/secure_bootloader_ble_s112_pca10040e.emProject,
- updated my app according to Nordic instructions (RAM parameters modified, added dfu .c files to project, added preprocessor definitions, added include directories, made changes to sdk_config.h, added includes and source additions to main.c),
- built my application
- generated the bootloader settings file using nrfutil for the hex file of my application,
- using mergehex, merged the bootloader settings, bootloader, softdevice and my application together
- used nrfjprog to erase and program chip
Using nRF Connect for Desktop for discover the device, the name of the device advertising is DfuTarg. It belongs to the bootloader instead of my application. However, using the Programmer option of the application, I can see all the hex files in the device.
Doing the same method with a nRF2832, it works properly. So, as one difference with the nRF2832 chip is the memory capacity, maybe the problem is related to the memory limitation of the nRF2810. In fact, I'm not sure about the correct values of RAM_SIZE and RAM_START in the linker options of the application.
All help is welcome
Thanks in advance,
Marta