My first Problem was:
“cannot find -lTotemX4 collect2: error: ld returned 1 exit status”
Solved by:
→ Library.json → “build flags” → “flags”: switching from windows notation “\” to linux notation “/”
My actual Problem is:
.pio/libdeps/esp32dev/Totem Library/src/esp32/libTotemX4.a(TotemX4.cpp.o):(.literal._ZN15FirmwareUpdater7collectEPKhj[FirmwareUpdater::collect(unsigned char const*, unsigned int)]+0x4): undefined reference to UpdateClass::begin(unsigned int, int, int, unsigned char)' .pio/libdeps/esp32dev/Totem Library/src/esp32/libTotemX4.a(TotemX4.cpp.o): In function FirmwareUpdater::collect(unsigned char const*, unsigned int)’:
D:\projects\arduino_x4\esp32/lib\TotemX4\src/TotemX4.cpp:278: undefined reference to `UpdateClass::begin(unsigned int, int, int, unsigned char)’
collect2: error: ld returned 1 exit status
*** [.pio/build/esp32dev/firmware.elf] Error 1
Is there any dependecy which is miss?
Or is the Assembly not actual?
Thank you for your hint.
Hints:
Arduino on Ubuntu does work in any case.
Arduino on Windows is pending
Platformio on Ubuntu (above) nearly finished compiling
Linux und Windows has the same Errors!
Platformio has another bug than the Arduino.
1st Arduino Error:
C:\Users\Aurora\Documents\Arduino\libraries\Totem_Library\src/interfaces/ble/TotemBLENetwork.h:22:10: fatal error: FreeRTOS.h: No such file or directory #include <FreeRTOS.h>
^~~~~~~~~~~~
But than there is something with your Example for X3_FBI:
But the example for the X3 uses the Totem Library! But I must not insert it, because otherwise many things are defined twice.
If I delete the totem library from the example on the page, then this error occurs:
error: ‘Totem’ was not declared in this scope
Totem.BLE.begin(); // Start Bluetooth Low Energy interface
To program Mini Control Board X3 (remotely from ESP32 Devkit module) use standard ESP32 Arduino core (1.0.6) with “Totem Library”. You will find documentation here: https://docs.totemmaker.net/remote-control/arduino/.
For PlatformIO, use configuration I posted above.
At the moment do not mix them between. Later we will update Totem Library to remove deprecated Totem.X4 implementation and add proper compatibility with latest ESP32 Arduino core.