Here is my platformio.ini:
[env:lolin_d32]
platform = https://github.com/tasmota/platform-espressif32/releases/download/2024.07.11/platform-espressif32.zip
board = lolin_d32
framework = arduino
lib_deps = askuric/Simple FOC
And my main.cpp:
#include <Arduino.h>
void setup() {}
void loop() {}
Compilation of the “askuric/Simple FOC” library hangs at some point:
Processing lolin_d32 (platform: https://github.com/tasmota/platform-espressif32/releases/download/2024.07.11/platform-espressif32.zip; board: lolin_d32; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/lolin_d32.html
PLATFORM: Espressif 32 (2024.7.11) > WEMOS LOLIN D32
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, 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)
PACKAGES:
- framework-arduinoespressif32 @ 3.0.2+sha.9100566
- tool-esptoolpy @ 4.7.4
- tool-mklittlefs @ 3.2.0
- tool-riscv32-esp-elf-gdb @ 11.2.0+20220823
- tool-xtensa-esp-elf-gdb @ 11.2.0+20230208
- toolchain-xtensa-esp32 @ 12.2.0+20230208
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 26 compatible libraries
Scanning dependencies...
Dependency Graph
|-- Simple FOC @ 2.3.4
Building in release mode
Compiling .pio\build\lolin_d32\libf27\Simple FOC\current_sense\hardware_specific\teensy\teensy4_mcu.cpp.o
Compiling .pio\build\lolin_d32\libf27\Simple FOC\drivers\hardware_specific\atmega\atmega2560_mcu.cpp.o
Compiling .pio\build\lolin_d32\libf27\Simple FOC\drivers\hardware_specific\atmega\atmega328_mcu.cpp.o
Compiling .pio\build\lolin_d32\libf27\Simple FOC\drivers\hardware_specific\atmega\atmega32u4_mcu.cpp.o
Compiling .pio\build\lolin_d32\libf27\Simple FOC\drivers\hardware_specific\due_mcu.cpp.o
Compiling .pio\build\lolin_d32\libf27\Simple FOC\drivers\hardware_specific\esp32\esp32_driver_mcpwm.cpp.o
Compiling .pio\build\lolin_d32\libf27\Simple FOC\drivers\hardware_specific\esp32\esp32_ledc_mcu.cpp.o
Compiling .pio\build\lolin_d32\libf27\Simple FOC\drivers\hardware_specific\esp32\esp32_mcpwm_mcu.cpp.o
In file included from .pio/libdeps/lolin_d32/Simple FOC/src/current_sense/hardware_specific/teensy/../../../drivers/hardware_specific/teensy/teensy_mcu.h:4,
from .pio/libdeps/lolin_d32/Simple FOC/src/current_sense/hardware_specific/teensy/../../../drivers/hardware_specific/teensy/teensy4_mcu.h:4,
from .pio/libdeps/lolin_d32/Simple FOC/src/current_sense/hardware_specific/teensy/teensy4_mcu.cpp:2:
.pio/libdeps/lolin_d32/Simple FOC/src/current_sense/hardware_specific/teensy/../../../drivers/hardware_specific/teensy/../../hardware_api.h:6:10: fatal error: ../communication/SimpleFOCDebug.h: No such file or directory
6 | #include "../communication/SimpleFOCDebug.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
This is odd, because …/communication/SimpleFOCDebug.h is really there. There’s also a random factor, as sometimes the same error occurs with another include file. In fact, at one point, any attempt to include a file with a relative path seems to trigger an error.
If I remove the library from lib_deps and copy it the lib folder, it compiles without a glitch.
I’ve done a Full Clean, deleted the .pio folder, uninstalled/reinstalled PlatformIO, but it didn’t solve the problem.
Has anyone experienced this?