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

DFU SD 8.1 Non-functional W/ GCC

Hello,

It appears that changes were made to the DFU bootloader project in SD 8.1. The project no longer seems to function when using GCC.

I am using GCC 4.9.3

when compiling the bootloader for release everything finishes fine. I flash the code. The led turns on, but the device never starts advertising. I attempted to compile the code in debug mode in order to resolve the issue. However, the code will not compile in debug mode.

I recieve the following output to console:

Linking target: bootloader_nrf51822_xxac.out

../../../../components/libraries/bootloader_dfu/bootloader_util.c: In function 'bootloader_util_reset':

../../../../components/libraries/bootloader_dfu/bootloader_util.c:106:1: error: r7 cannot be used in asm here }

^ lto-wrapper: C:/Program Files (x86)/GNU Tools ARM Embedded/4.9 2015q1/bin/arm-none-eabi-gcc returned 1 exit status

c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: lto-wrapper failed collect2.exe: error: ld returned 1 exit status

make: *** [nrf51822_xxac] Error 1

Parents Reply Children
No Data
Related