I am trying to add a bootloader to my application which I have currently running on an nrf51822 with SDK12.3.
The first problem was that the examples from SDK12.3 do not contain the .emProject file, which I solved with the code available on Nordic case ID 225138 (https://devzone.nordicsemi.com/f/nordic-q-a/44711/can-t-run-secure-bootloader-example-on-nrf51822)
There was a problem with the uECC.h not being on the include path, but that was easily fixed.
Problem now is that I still can't compile the provided example. This is the error message:
1> Generating linker script 'secure_dfu_secure_dfu_ble_s130_pca10028_debug.ld'
1> Linking secure_dfu_secure_dfu_ble_s130_pca10028_debug.elf
1> /usr/share/segger_embedded_studio_for_arm_4.42/gcc/arm-none-eabi/bin/ld: cannot find ../../../../../external/micro-ecc/nrf51_armgcc/armgcc/micro_ecc_lib_nrf51.a: No such file or directory
Build failed
sounds like I need to create the missing file, but running sdk/external/micro-ecc/nrf51_armgcc/armgcc/Makefile also breaks with error:
#: ~/projects/nrf51822/sdk/external/micro-ecc/nrf51_armgcc/armgcc$ make default
/bin/sh: 1: /usr/local/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc: not found
Cannot find: "/usr/local/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc".
Please set values in: "/home/user/projects/nrf51822/sdk/components/toolchain/gcc/Makefile.posix"
according to the actual configuration of your system.
../../../../components/toolchain/gcc/Makefile.common:25: *** Cannot continue. Stop.
It is not hard to tell that this is not my cup of tea, but help would be appreciated anyway
Best regards,
Ricardo