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

secure bootloader compile failure

SDK 15.2 SD API 6.1 SES
I am trying to get my system to work on a DFU system. In order to do it i need to have a secure bootloader. 

using the secure bootloader in the example folders, i try and make the secure_bootloader\pca10040_ble\armgcc\Makefile and it seems to compile, after i figured out and fixed the uECC.c and uECC.h missing issue. But it does not complete compile

i get an output of 

Linking target: _build/nrf52832_xxaa_s132.out

and then it gives the following error

I am trying to basically be able to compile the hex file using the following batch script. I am assuming I can make SES do this somehow later.

set APP_FILE=ble_app_template_pca10040_s132
set APP_FILE_LOC=Output\Release\Exe
@echo Preparing: nordic dfu settings file...
nrfutil settings generate --family NRF52 --application %APP_FILE_LOC%\%APP_FILE%.hex --application-version 2 --bootloader-version 2 --bl-settings-version 1 %APP_FILE_LOC%%APP_FILE%_bl_settings.hex
mergehex --merge %APP_FILE_LOC%\%APP_FILE%.hex $%APP_FILE_LOC%\%APP_FILE%_bl_settings.hex --output  %APP_FILE_LOC%\%APP_FILE%_app+bl_settings.hex
@echo Preparing: nordic DFU zip
nrfutil pkg generate --hw-version 52 --sd-req 0x91 --application-version 1 --application %APP_FILE_LOC%\%APP_FILE%.hex --key-file %APP_FILE_LOC%\..\..\..\keys\sbd_mlock_private_key.pem %APP_FILE_LOC%\..\%APP_FILE%_app_dfu_pkg.zip

the batch file works to merge the files and create the output, but i need a proper bootloader files. I think anyways from what i am reading.

What is causing the error during compilation?

Edit: I was able to get it to compile using the SES files and Segger Embedded Studio

Parents Reply Children
No Data
Related