PlatformIO Community

Could not find LD script

Hi

I’m testing remote CI using Travis CI.

I encounter problems testing on my ESP8266 NodeMCU which is attached to my PC (for demo).

I’ve used pio remote update from Travis CI and pio update locally. but nothing has changed.

my platformio.ini :

[env:nodemcuv2]

platform = espressif8266

board = nodemcuv2

framework = arduino

build_flags = 

  -D BEARSSL_SSL_BASIC

; lib_deps = Blynk

board_build.ldscript = eagle.flash.4m1m.ld

monitor_speed = 115200

upload_speed = 921600

test_ignore = test-native

[env:native]

platform = native

test_ignore = test-embedded

.travis.yml :

language: python

python:

    - "3.8"

sudo: false

cache:

    directories:

        - "~/.platformio"

install:

    - pip install -U platformio

    - platformio update

script:

    - pio remote update

    - platformio test -e native

    - pio remote agent list

    - pio remote --agent mydev test -e nodemcuv2

    - pio remote --agent mydev run -e nodemcuv2 -t upload

The error is :

Error: Could not find LD script

to last 2 commands :

- pio remote --agent mydev test -e nodemcuv2
- pio remote --agent mydev run -e nodemcuv2 -t upload

Note : I’ve received the corresponding commands at agent :

2020-07-03 21:35:07 [info] Remote command received: psync
2020-07-03 21:35:12 [info] Remote command received: test
2020-07-03 21:35:31 [info] Remote command received: psync
2020-07-03 21:35:36 [info] Remote command received: run

What am I missing ?

Thanks

Hi , Any help here ?

I’ve raised an issue to github’s repo without any update since then.

I don’t receive a such a

when building a basic firmware with using the platformio.ini

[env:nodemcuv2]
platform = espressif8266
board = nodemcuv2
framework = arduino
build_flags = 
  -D BEARSSL_SSL_BASIC
board_build.ldscript = eagle.flash.4m1m.ld
monitor_speed = 115200
upload_speed = 921600
test_ignore = test-native

with a src\main.cpp

#include <Arduino.h>

// modify the preferences
void setup() {
}

void loop() {
}
No dependencies
Building in release mode
Compiling .pio\build\nodemcuv2\src\main.cpp.o
Generating LD script .pio\build\nodemcuv2\ld\local.eagle.app.v6.common.ld
Archiving .pio\build\nodemcuv2\libFrameworkArduinoVariant.a
..
Retrieving maximum program size .pio\build\nodemcuv2\firmware.elf
Checking size .pio\build\nodemcuv2\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [===       ]  32.7% (used 26776 bytes from 81920 bytes)
Flash: [==        ]  24.6% (used 256688 bytes from 1044464 bytes)
Creating BIN file ".pio\build\nodemcuv2\firmware.bin" using "C:\Users\Maxi\.platformio\packages\framework-arduinoespressif8266\bootloaders\eboot\eboot.elf" and ".pio\build\nodemcuv2\firmware.elf"

Can you reproduce the error locally and in verbose mode (-v invocation flag)?

Hi

Thanks for replying, But this builds successfully locally. The problem occurs while building/testing via Travis.ci.