platformio / platform-espressif8266

Espressif 8266: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/espressif8266
Apache License 2.0
325 stars 219 forks source link

Not all LD scripts available with platform-espressif8266 #122

Closed lazyzero closed 5 years ago

lazyzero commented 5 years ago

Hi, I get the error:

Error: Could not find 'eagle.flash.4m3m.ld' LD script in LDPATH

checking the ~/.platformio/packages/framework-arduinoespressif8266/tools/sdk/ld shows me that the 4m, 4m1m and 4m2m is available but not the 4m3m. I crosschecked with https://github.com/esp8266/Arduino/tree/master/tools/sdk/ld and there it is available. So I downloaded it from there. (had to edit this file also as the local.eagle.app.v6.common.ld is called eagle.app.v6.common.ld in platform-espressif8266).

I have tested with platform-espressif8266 1.6.0 and 1.8.0. We need this flash settings for our development board sold under the name Kniwwelino. And other flash conficts will break the behaviour and preinstalled files in the SPIFFS. So we have to stick with the 4m3m.

Can you please add the eagle.flash.4m3m.ld to next release? BTW can we also ask to get the board supported as board=kniwwelino to prevent fiddling with the build_flags = -Wl,-Teagle.flash.4m3m.ld?

Best Christian

mamaretti commented 5 years ago

i have the same issue. it looks like that "eagle.flash.4m.ld" from platformio has a wrong name. the content of the file looks like 4m3m from Arduino

and the 2mXX layouts are also missing

thx

ivankravets commented 5 years ago

If you are looking for the latest 2.5.0 release of Arduino ESP8266 core, you need to switch to upstream version of dev/platform. See https://docs.platformio.org/en/latest/platforms/espressif8266.html#upstream

Otherwise, see LD scripts for 2.4.2 core => https://github.com/esp8266/Arduino/tree/2.4.2/tools/sdk/ld

P.S: We plan to release updated dev/platform with 2.5.0 core support this week.