Compiling the nRF52 bootloader: nrf.h not found

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Gatze
 
Posts: 12
Joined: Tue Sep 28, 2021 2:59 am

Compiling the nRF52 bootloader: nrf.h not found

Post by Gatze »

I made some mistakes with my custom PCB (or better said just forgotten). The DFU pin and FRST pin are connected to some electronics that keep's the processor in boot.

Either I have to modify my PCB or the bootloader.
At first glance it doesn't look that hard to change the bootloader pins and build it. I have a bit of experience with it, also made a custom application for the VESC. Already download for that the compiler.

When I download the files and did not change anything, this is the output when I try to build it:

Code: Select all

gatze@gatze-B85M-HD3:~/Desktop/Adafruit_nRF52_Bootloader-master$ make BOARD=feather_nrf52840_express all
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
CC dfu_ble_svc.c
In file included from src/dfu_ble_svc.c:41:
lib/sdk11/components/libraries/bootloader_dfu/dfu_ble_svc.h:39:10: fatal error: nrf.h: No such file or directory
   39 | #include "nrf.h"
      |          ^~~~~~~
compilation terminated.
Makefile:382: recipe for target '_build/build-feather_nrf52840_express/dfu_ble_svc.o' failed
make: *** [_build/build-feather_nrf52840_express/dfu_ble_svc.o] Error 1
Am I doing something wrong ? Or where is the nrf.h file ? Should I download a sdk from Nordic ?

Locked
Please be positive and constructive with your questions and comments.

Return to “Feather - Adafruit's lightweight platform”