Hello,
I have been using platformio on a Linux system without any problem, yesterday I installed pio on a raspberry pi 0 running the latest raspbian (A derivate of Debian 9) and every time I try to pio run I get this:
Building .pioenvs/nodemcuv2/firmware.bin
Segmentation fault
*** [.pioenvs/nodemcuv2/firmware.bin] Error 139
Some specs:
My Linux Pc:
- Ubuntu 18.10 x64
-Platformio Core 3.6.5 + Platformio IDE Vs Code
Raspberry Pi 0:
- Raspbian Stretch (Derivate of Debian 9) ARM
-Platformio Core 3.6.5 (I’m running only CLI, can’t install Platformio IDE)
Board esp8266, I tried creating a project for both a NodeMcu and a wemos_d1_mini, on Linux both of them compile with no problem, on raspberry none of them compiles.
I think I tried everything but nothing seems to work, here’s what I tried so far:
- Reinstalling platformio Core
- Removing pio Core and installing the dev version
- Creating a new pio project and changing the board
- Copying the project folder from the Linux machine to the raspberry one
Here you can find the output of the pio run -v
command
NodeMcu pio run -v
pi@raspberrypi:~/Documents/provaBo $ more platformio.ini ; PlatformIO Project Configuration File ; ; Build options: build flags, source filter ; Upload options: custom upload port, speed and extra flags ; Library options: dependencies, extra library storages ; Advanced options: extra scripting ; ; Please visit documentation for the other options and examples ; https://docs.platformio.org/page/projectconf.html [env:nodemcuv2] platform = espressif8266 board = nodemcuv2 framework = arduino
pi@raspberrypi:~/Documents/provaBo $ pio run -v Processing nodemcuv2 (platform: espressif8266; board: nodemcuv2; framework: arduino) ------------------------------------------------------------------------------------------------------------------------------------------------------ CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/nodemcuv2.html PLATFORM: Espressif 8266 > NodeMCU 1.0 (ESP-12E Module) HARDWARE: ESP8266 80MHz 80KB RAM (4MB Flash) Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF MODES: FINDER(chain) COMPATIBILITY(soft) Collected 26 compatible libraries Scanning dependencies... No dependencies "esptool" -eo "/home/pi/.platformio/packages/framework-arduinoespressif8266/bootloaders/eboot/eboot.elf" -bo .pioenvs/nodemcuv2/firmware.bin -bm dio -bf 40 -bz 4M -bs .text -bp 4096 -ec -eo .pioenvs/nodemcuv2/firmware.elf -bs .irom0.text -bs .text -bs .data -bs .rodata -bc -ec Segmentation fault *** [.pioenvs/nodemcuv2/firmware.bin] Error 139
Wemos D1 Mini pio run -v
pi@raspberrypi:~/Documents/provaBo2 $ more platformio.ini ; PlatformIO Project Configuration File ; ; Build options: build flags, source filter ; Upload options: custom upload port, speed and extra flags ; Library options: dependencies, extra library storages ; Advanced options: extra scripting ; ; Please visit documentation for the other options and examples ; https://docs.platformio.org/page/projectconf.html [env:d1_mini_lite] platform = espressif8266 board = d1_mini_lite framework = arduino
pi@raspberrypi:~/Documents/provaBo2 $ pio run -v Processing d1_mini_lite (platform: espressif8266; board: d1_mini_lite; framework: arduino) ------------------------------------------------------------------------------------------------------------------------------------------------------ CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/d1_mini_lite.html PLATFORM: Espressif 8266 > WeMos D1 mini Lite HARDWARE: ESP8266 80MHz 80KB RAM (1MB Flash) Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF MODES: FINDER(chain) COMPATIBILITY(soft) Collected 26 compatible libraries Scanning dependencies... No dependencies "esptool" -eo "/home/pi/.platformio/packages/framework-arduinoespressif8266/bootloaders/eboot/eboot.elf" -bo .pioenvs/d1_mini_lite/firmware.bin -bm dout -bf 40 -bz 1M -bs .text -bp 4096 -ec -eo .pioenvs/d1_mini_lite/firmware.elf -bs .irom0.text -bs .text -bs .data -bs .rodata -bc -ec Segmentation fault *** [.pioenvs/d1_mini_lite/firmware.bin] Error 139
Any suggestion is welcome!