Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Dec 17 2019 02:06
    boxofrox opened #3309
  • Dec 16 2019 20:35
    Bascy opened #3308
  • Dec 16 2019 18:56
    irukard commented #3078
  • Dec 16 2019 15:53
    cychai1995 edited #3307
  • Dec 16 2019 15:53
    cychai1995 opened #3307
  • Dec 16 2019 04:57
    lackdaz commented #3286
  • Dec 16 2019 04:55
    lackdaz commented #3286
  • Dec 16 2019 04:55
    lackdaz commented #3286
  • Dec 16 2019 04:49
    lackdaz commented #3286
  • Dec 16 2019 04:48
    lackdaz commented #3286
  • Dec 16 2019 04:47
    lackdaz commented #3286
  • Dec 15 2019 21:21
    mlewand opened #3306
  • Dec 14 2019 15:23
    hmaarrfk opened #3305
  • Dec 14 2019 15:16
    hmaarrfk commented #3296
  • Dec 13 2019 19:41
    Misterion96 edited #3303
  • Dec 13 2019 19:41
    Misterion96 edited #3303
  • Dec 13 2019 19:41
    Misterion96 edited #3303
  • Dec 13 2019 19:41
    Misterion96 edited #3303
  • Dec 13 2019 19:28
    HeathPetersen opened #3304
  • Dec 13 2019 17:53
    burnsed commented #3120
Mike Dunston
it will not work for S2
use the platform override I've posted above and it will work
Davide Perini
ah ok sorry
thank you
@atanisoft now it says
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/featheresp32-s2.html
PLATFORM: Espressif 32 (3.3.1+sha.3784198) > Adafruit ESP32-S2 Feather Development Board
HARDWARE: ESP32S2 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
 - framework-arduinoespressif32 0.0.0+sha.a1d8b95 
 - tool-esptoolpy 1.30100.210531 (3.1.0) 
 - toolchain-esp32s2ulp 1.22851.191205 (2.28.51) 
 - toolchain-riscv32-esp 8.4.0+2021r1 
 - toolchain-xtensa-esp32s2 8.4.0+2021r1
Error: This board doesn't support arduino framework!
Mike Dunston
more updates will be needed as PIO is restricting what frameworks you are allowed to use (even though it is supported in the framework!)
Davide Perini
thank you Mike
Mike Dunston
Shawn A
afaik you have to still wipe extensa32 folders when going back and forth
Byron Johnson
How does platformio work under the hood to keep separate environments? Is there anywhere I can browse/read just to understand it a little better? Is it containerized per build environment/platform, etc?
Davide Perini
Hello, noob question here...
I would like to point to a specific commit in the Arduino ESP8266 master branch.
I'm using this:
platform = https://github.com/platformio/platform-espressif8266.git
in my platformio.ini
but how can I specify to get a specific commit in the master branch?
Thank you!
I think this should work for a given commit:
platform_packages = platformio/framework-arduinoespressif8266 @ https://github.com/esp8266/Arduino.git#e64cb619f79a3c888dd56b957d8f48ce74f35735
Davide Perini
Thank you very much Byron!
Davide Perini

hi all... esp web tools wants a bootloader.bin, and a ota.bin file
is there a way to generate it with platformio?
this is an example of the offset I use for the esp web tools config file
in my .pio/build forlder I only find the firmware.bin and the partitions.bin

is there a way to generate a single bin file that contains everything like the bootloader.bin, ota.bin, partitions.bin and firmware.bin?

Byron Johnson
How can I understand the flow of PlatformIO? Is there any guide showing which python routines are called when and how they pull in the platforms and iterate through the build process? Does it use VM’s under the hood? When/how are they invoked?
Ivan Kravets
People moved to the official community forum. Please forward your questions to https://community.platformio.org/
ah, nvm
Christopher Thomas
I've got an error where I can connect an atmega2560 to my computer and flash the blink sketch just fine with the arduino ide, but I can't flash anything to it using platformio, anybody have any idea why? Seems a bit weird
At first I thought my usb cable was bad, or the connection was bad, but then I opened the arduino ide and it flashed first time without any errors, but I can't see any advanced information about what arduino ide did to flash the device that I can use to configure platformio with
I get these errors in platformio
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/ATmega2560.html
PLATFORM: Atmel AVR (4.0.0) > ATmega2560
HARDWARE: ATMEGA2560 16MHz, 8KB RAM, 256KB Flash
DEBUG: Current (avr-stub) On-board (avr-stub, simavr)
 - framework-arduino-avr-megacore @ 2.1.3 
 - tool-avrdude @ 1.60300.200527 (6.3.0) 
 - toolchain-atmelavr @ 1.70300.191015 (7.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 10 compatible libraries
Scanning dependencies...
Dependency Graph
|-- Wire @ 1.0
|-- SparkFun VL6180 Sensor @ 1.1.3+sha.a4e4def
|   |-- Wire @ 1.0
|-- SoftwareSerial @ 1.1
Building in release mode
Checking size .pio/build/atmega2560/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [=         ]  10.3% (used 843 bytes from 8192 bytes)
Flash: [          ]   3.7% (used 9726 bytes from 261120 bytes)
Configuring upload protocol...
AVAILABLE: arduino
CURRENT: upload_protocol = arduino
Looking for upload port...
Auto-detected: /dev/cu.usbserial-140
Uploading .pio/build/atmega2560/firmware.hex
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
Christopher Thomas
ah, so I enabled the advanced compier and upload output in arduino ide and found that it was using the "wiring" protocol to upload to the atmega2560, so I added upload_protocol = wiring to my platformio.ini file and it was able to upload it without any problem
Márton Loránd
Thank you @christhomas you saved my day :D upload_protocol = wiring solved my error :D