adafruit / Adafruit_nRF52_Arduino

Adafruit code for the Nordic nRF52 BLE SoC on Arduino
Other
623 stars 497 forks source link

peripheral pairing_pin Example doesn't compile #628

Closed ericlangel closed 3 years ago

ericlangel commented 3 years ago

Describe the bug peripheral pairing_pin Example doesn't compile there are many headers not found

Set up (mandatory)

To Reproduce compile sketch with actual master branch

Serial Log

when i open the sketch -> i get an info in command window that there is no Header file in Adafruit_nrfCrypto

when i compile the sketch -> common/tusb_compiler no such file or directory

Error.txt

ericlangel commented 3 years ago

same for bleuart example

common/tusb_compiler.h is missing?

is there a working example for pairing_pin?

hathach commented 3 years ago

firstly please clean up your 1st post and have compile log in its own txt file.

jpconstantineau commented 3 years ago

Quick comment: the nrf52832 does not have a cryptocell nor USB. Why then is this trying to compile wit Adafruit_nRFCrypto and Tinyusb? This is probably why it's not compiling...

ericlangel commented 3 years ago

@hathach sorry, i did clean it

@jpconstantineau same for Feather NRF52840 Express

hathach commented 3 years ago

@ericlangel you need to clone the TinyUSB core submodule as well, download zip file won't do the trick. Although 832 does not use tinyusb, it still need usb hid definition for ble hid

 5. Clone this repo & its submodules: `git clone --recurse-submodules https://github.com/adafruit/Adafruit_nRF52_Arduino.git`

PS: I have update the readme to make it a bit clearer