Good afternoon,
Currently there are several packages for ESP8266
esp8266
and esp8266_stage
Would is be possible to ?(once you have converted pio to use the esp8266 arduino folder directly) to have an
esp8266_local
platform so that you can use your own locally pulled git version? This would help a lot with building and developing the framework as well.
you could then have a variable to point to the directory / even the git version you with to checkout?
for example
[platformio]
src_dir = ./MySONOFF ; keeps arduino happy :)
data_dir = ./MySONOFF/data
[common]
lib_deps = ArduinoJson, ESPAsyncTCP, ESPAsyncWebServer, AsyncMqttClient, Bounce2
upload_port = 192.168.1.155 ; testdevice
;upload_port = /dev/cu.Repleo*
upload_speed = 961600
[env:localgit]
platform = espressif8266_local
platform_dir = /mydir/esp8266
framework = arduino
board = esp12e
build_flags = -Wl,-Tesp8266.flash.4m.ld
board_flash_mode = qio
board_f_cpu = 160000000L
board_f_flash = 80000000L
upload_port = ${common.upload_port}
upload_speed = ${common.upload_speed}
lib_deps = ${common.lib_deps}
Thanks for the report! Fixed in
opened 08:41PM - 05 Jun 17 UTC
closed 09:44PM - 22 Jun 17 UTC
bug
Just upgraded to `version PlatformIO, version 3.4.0b10`
Now get failure on bu… ilding
```
Error: Could not find 'esp8266.flash.4m.ld' LD script in LDPATH '/Users/amelvin/.platformio/packages/framework-arduinoespressif8266@src-e093741c24b1f814060be0cac08f8093/tools/sdk/lib /Users/amelvin/.platformio/packages/framework-arduinoespressif8266@src-e093741c24b1f814060be0cac08f8093/tools/sdk/ld /Users/amelvin/.platformio/packages/framework-arduinoespressif8266@src-e093741c24b1f814060be0cac08f8093/tools/sdk/libc/xtensa-lx106-elf/lib /Users/amelvin/git/MySONOFF/.pioenvs/debug'
```
using this in PIO as board definition
```
[env:debugsonoff]
platform = espressif8266_stage
framework = arduino
board = esp12e
build_flags = -Wl,-Tesp8266.flash.4m.ld-DDEBUG_CODE=Serial -DMY_SETTINGS_FILE=\"/sonoff.json\"
board_flash_mode = qio
board_f_cpu = 160000000L
board_f_flash = 80000000L
upload_port = 192.168.1.151 ; square
;upload_port = /dev/cu.Repleo*
;upload_speed = 460800
lib_deps = ArduinoJson, ESPAsyncTCP, ESPAsyncWebServer, AsyncMqttClient, Bounce2
```
Changing to ```build_flags = -Wl,-Teagle.flash.4m.ld``` fixes the issue