I have a problem getting the ULP examples to work. I know this functionality is new and on development but I know it works outside of PlatformIO and I need it to get working as implied by [Valerii Koval] in issue #95.
I will add at the end of the post the system description so I do not clog the start of this post.
I have been searching this community and google for almost a week trying to solve my problem.
I have tried almost every tip given by many, including [ivankravets] and I have reached a dead-end.
Installed and reinstalled vscode 3 times with full clean.
Installed and reinstalled from inside vscode, PlatformIO many more times.
Added to my W10 PATH environment this two paths so PowerShell can execute the required commands:
-C:\Users\Thomas Magdahl\.platformio\penv\Scripts -C:\Users\Thomas Magdahl\.platformio\esp32ulp-elf-binutils\bin
Was able to run “pio update” successfully while in this ULP example directory
But when running “platformio run” I got stuck. It runs but fails with the message:
_____________________________________________________________________________________ _____________________________________________________________________________________ PS D:\Data\Devlp\PlatformIO\Projects\Examples\espidf-ulp-adc> platformio run Processing esp32dev (platform: espressif32; board: esp32dev; framework: espidf) --------------------------------------------------------------------------------------------------------------------------------- Verbose mode can be enabled via `-v, --verbose` option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html PLATFORM: Espressif 32 1.9.0 > Espressif ESP32 Dev Module HARDWARE: ESP32 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) PACKAGES: toolchain-xtensa32 2.50200.80 (5.2.0), toolchain-esp32ulp 1.22851.190618 (2.28.51), framework-espidf 3.30202.190627 (3.2.2), tool-esptoolpy 1.20600.0 (2.6.0) LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF Modes: Finder ~ chain, Compatibility ~ soft Found 0 compatible libraries Scanning dependencies... No dependencies Preprocessing .pio\build\esp32dev\ulp_app\adc.ulp.pS xtensa-esp32-elf-gcc: error: Magdahl\.platformio\packages\framework-espidf\components\soc\esp32\include: No such file or directory Compiling .pio\build\esp32dev\bootloader\bootloader_support\src\flash_qio_mode.o Compiling .pio\build\esp32dev\bootloader\bootloader_support\src\secure_boot.o *** [.pio\build\esp32dev\ulp_app\adc.ulp.pS] Error 1 Compiling .pio\build\esp32dev\bootloader\bootloader_support\src\secure_boot_signatures.o =================================================== [ERROR] Took 8.21 seconds =================================================== PS D:\Data\Devlp\PlatformIO\Projects\Examples\espidf-ulp-adc> _____________________________________________________________________________________ _____________________________________________________________________________________
Followed almost any suggestion I was able to understand.
For the regular examples like blinking a led and Bluetooth Low Energy, my projects work fine and have worked since the first install. Love at the first sight as all the previous Espressif installations (native windows/Oracle VB + Ubuntu) kept on failing at different stages (spaces in the path, environment variables like ESP-IDF not working as expected, incompatible versions of python and 20 more issues I do not recall at the point I got sick of it ).
I am able to run (compile and load) my BLE server in my ESP32 DevKitV1 and my MIT APP Inventor code on my android phone is getting and modifying characteristics like a charm.
Of course now that I have figured out how to use BLE (being my application a low power one) I need to add ULP to the rest of the time when bluetooth is not required.
I have seen similar post with slightly different flavors and nothing discussed there could help me to overcome the problem which of course might be something stupid I am doing or that I forgot something.
Any help would be appreciated.
I am using an MSI laptop i5 2,5GHz 8GB RAM with W10 64 bit.
Visual Studio Code
Version: 1.36.1 (user setup)
OS: Windows_NT x64 10.0.17134
PlatformIO IDE 1.8.0