I don’t quite understand where the compilation instructions are generated. My goal is to program the ESP32 coprocessor in assembly using the Arduino Framework in PIO.
For that I changed the platform.txt file located in /home/julian/.platformio/packages/framework-arduinoespressif32
After I deleted the whole content of the file, my program was still compiling. I know that you can set some compilation flags in the .ini file, but can someone explain the purpose of the platform.txt file then?
This is the tutorial I followed on github:
I have exactly the same question as op - I’m trying to setup ulptool from duff2013 to work with PIO. The reason why I want to use his code is because of ULP C compiler implementation (much more convenient then writing assembly instructions). I noticed that adding platform.local.txt doesn’t do anything. Even removing platform.txt doesn’t do anything.
As suggested, I removed framework = arduino from platformio.ini (and #include <Arduino.h> from main.cpp) but that just generated this error while compiling:
A fatal error occurred: No segment header found at offset 0000 in ELF file.
*** [.pio/build/esp32dev/firmware.bin] Error 2