n-able-Arduino icon indicating copy to clipboard operation
n-able-Arduino copied to clipboard

bug(arduino): cannot open linker script file nrf52840_s140_v7.ld

Open fusetim opened this issue 2 months ago • 1 comments

Description

I'm trying to build a simple sketch for a new board I just received, a Seeed XIAO nRF52840. Unfortunately, when compiling with the appropriate arduino profile, the compilation fails as apparently one file is missing for the linking phase.

This error happens using both arduino-cli and arduino-ide.

$ arduino-cli compile --profile seeed .
The library FindHub has been automatically added from sketch project.
The library NimBLE-Arduino has been automatically added from sketch project.
/home/fusetim/.arduino15/packages/h2zero/tools/gcc-arm-none-eabi/9.3.1-1/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: cannot open linker script file nrf52840_s140_v7.ld: No such file or directory
collect2: error: ld returned 1 exit status

Used library   Version Path
FindHub        0.0.1   /home/fusetim/dev/bigproject/lib/FindHub
NimBLE-Arduino 2.3.6   /home/fusetim/.arduino15/internal/NimBLE-Arduino_2.3.6_0eaa1031c74dd31f/NimBLE-Arduino

Used platform  Version Path
h2zero:arm-ble 0.3.0   /home/fusetim/.arduino15/packages/h2zero/hardware/arm-ble/0.3.0
Error during build: exit status 1

Steps to reproduce

For Arduino-IDE:

  1. Create a new Arduino sketch (for instance, using the Blink example)
  2. Install the additional boards (platform_index_url: https://h2zero.github.io/n-able-Arduino/package_n-able_boards_index.json)
  3. Select the Seeed XIAO nRF52840 board
  4. Compile the sketch
  5. Stare at the error logs...
/home/fusetim/.arduino15/packages/h2zero/tools/gcc-arm-none-eabi/9.3.1-1/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: cannot open linker script file nrf52840_s140_v7.ld: No such file or directory
collect2: error: ld returned 1 exit status
exit status 1

Compilation error: exit status 1

For Arduino-CLI:

  1. Create a new sketch directory and a .ino file (for instance Blink)
  2. Create the following sketch.yaml project configuration
profiles:
  seeed:
    fqbn: h2zero:arm-ble:seed52840sense
    platforms:
      - platform: h2zero:arm-ble
        platform_index_url: https://h2zero.github.io/n-able-Arduino/package_n-able_boards_index.json
    libraries: []
    port: /dev/ttyACM0
    port_config:
      baudrate: 115200
  1. Build using arduino-cli compile --profile seeed .
  2. Stare at the exact same error.

Expected result

The project should hopefully compile correctly.

Additional information

  • arduino-cli version: arduino-cli Version: 1.3.1 Commit: 08ff7e2b76b7cd6394c4d09420b10cf0592b4405 Date:
  • OS, Arch: Arch Linux, x64

fusetim avatar Oct 20 '25 17:10 fusetim

Sorry about that, I will have release that will fix it shorty. The fix is in 1e75b69 if you want to patch your file for now

h2zero avatar Oct 28 '25 22:10 h2zero