Hi All
I have been developing on a Seed XIAO nRF52840 and have now purchased a nRF52840DK for debugging.
Following the documentation to update the platformio.ini I updated my ini file
https://docs.platformio.org/en/latest/boards/nordicnrf52/nrf52840_dk_adafruit.html
[env:nrf52840_dk_adafruit]
platform = nordicnrf52
board = nrf52840_dk_adafruit
framework = arduino
debug_tool = jlink
upload_protocol = jlink
monitor_speed = 115200
; change microcontroller
board_build.mcu = nrf52840
; change MCU frequency
board_build.f_cpu = 64000000L
lib_deps =
# RECOMMENDED
# Accept new functionality in a backwards compatible manner and patches
adafruit/Adafruit nRFCrypto @ ^0.1.2
bblanchon/ArduinoJson @ ^6.21.4
I am getting the following link error
.platformio/packages/toolchain-gccarmnoneeabi@1.70201.0/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld.exe: cannot find -lnrf_cc310_0.9.13-no-interrupts
It looks to be related to this ticket.
opened 06:02AM - 06 Nov 22 UTC
enhancement
ldf
What kind of issue is this?
- [ ] **Question**.
This issue tracker is … not the place for questions. If you want to ask how to do something,
or to understand why something isn't working the way you expect it to,
use [Community Forums](https://community.platformio.org) or [Premium Support](https://platformio.org/support)
- [ ] **PlatformIO IDE**.
All issues related to PlatformIO IDE should be reported to appropriate repository:
[PlatformIO IDE for Atom](https://github.com/platformio/platformio-atom-ide/issues) or
[PlatformIO IDE for VSCode](https://github.com/platformio/platformio-vscode-ide/issues)
- [ ] **Development Platform or Board**.
All issues (building, uploading, adding new boards, etc.) related to PlatformIO development platforms
should be reported to appropriate repository related to your hardware
https://github.com/topics/platformio-platform
- [ ] **Feature Request**.
Start by telling us what problem you’re trying to solve. Often a solution
already exists! Don’t send pull requests to implement new features without first getting our
support. Sometimes we leave features out on purpose to keep the project small.
- [x] **PlatformIO Core**.
If you’ve found a bug, please provide an information below.
*You can erase any parts of this template not applicable to your Issue.*
------------------------------------------------------------------
### Configuration
**Operating system**: Linux workstation 5.15.71-1-MANJARO
**PlatformIO Version** (`platformio --version`): `PlatformIO Core, version 6.1.6a`
### Description of problem
Some precompiled arduino libraries have the FPU variant in the source and include the library depending on it.
For instance, [Adafruit nRFCrypto](https://github.com/adafruit/Adafruit_nRFCrypto/tree/master/src/cortex-m4) library has `[fpv4-sp-d16-hard](https://github.com/adafruit/Adafruit_nRFCrypto/tree/master/src/cortex-m4/fpv4-sp-d16-hard)
#### Steps to Reproduce
1. Create a new project with nrf52 platform and Arduino framework and add nRFCrypto to the depedencies:
```ini
[env:nrf52]
platform = nordicnrf52
board = adafruit_feather_nrf52840
framework = arduino
lib_deps =
adafruit/Adafruit nRFCrypto@^0.0.7
```
2. Compile
### Actual Results
Fails to link:
```
Linking .pio/build/adafruit_feather_nrf52840/firmware.elf
/home/USER/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld: cannot find -lnrf_cc310_0.9.13-no-interrupts
collect2: error: ld returned 1 exit status
*** [.pio/build/xiaonrf_adafruit/firmware.elf] Error 1
```
### Expected Results
To successfully link.
### If problems with PlatformIO Build System:
**The content of `platformio.ini`:**
```ini
[env:nrf52]
platform = nordicnrf52
board = adafruit_feather_nrf52840
framework = arduino
lib_deps =
adafruit/Adafruit nRFCrypto@^0.0.7```
**Source file to reproduce issue:**
```cpp
Insert here...
```
### Additional info
Are there any work arounds I can use here?
Thanks
Dave
This library should already be included in the Arduino core. What hapens when you remove that line, delete the .pio
folder in the project and rebuild?
Hi Max
Yes that did the trick, removing the nRFCrypto library allowed a successful build.
When using the XIAO profile it did allow a build with that library still specified.
What is interesting is that I added that library to resolve a problem when I first started working with the XIAO nRF in that if would not build as it said that library was missing unless manually added.
I have seen that a few times where platformio complains about in-built libraries, like Wire or SPI, but removing the pio folder and restarting VS Code solves the problem.
Thanks again.
Dave
1 Like