Hello,
I’m new on PlatformIO. Yesterday I installed code on my Manjaro Linux system and added the PlatformIO plugin.
I have build an Arduino like “blink” sketch for a ESP32 und successfully uploaded it to the ESP. So far nor bigger problem.
Today I tried to use the PIO debugger using a esp-prog and failed.
Here is my platformio.ini:
[env:esp32doit-devkit-v1]
platform = espressif32
board = esp32doit-devkit-v1
framework = arduino
monitor_port = /dev/ttyUSB0
monitor_speed = 115200
upload_port = /dev/ttyUSB0
upload_speed = 921000
debug_tool = esp-prog
debug_port = /dev/ttyUSB2
debug_init_break = tbreak setup
In debug console I get these messages:
Preparing firmware for debugging...
Processing esp32doit-devkit-v1 (platform: espressif32; board: esp32doit-devkit-v1;
framework: arduino)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32doit-devkit-
v1.html
PLATFORM: Espressif 32 1.11.2 > DOIT ESP32 DEVKIT V1
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:
- framework-arduinoespressif32 3.10004.200129 (1.0.4)
- tool-esptoolpy 1.20600.0 (2.6.0)
- toolchain-xtensa32 2.50200.80 (5.2.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 26 compatible libraries
Scanning dependencies...
No dependencies
Building in debug mode
Retrieving maximum program size .pio/build/esp32doit-devkit-v1/firmware.elf
Checking size .pio/build/esp32doit-devkit-v1/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 4.7% (used 15452 bytes from 327680 bytes)
Flash: [== ] 16.6% (used 217181 bytes from 1310720 bytes)
========================= [SUCCESS] Took 1.15 seconds
=========================
undefinedpiogdb: error while loading shared libraries: libncurses.so.5: cannot open
shared object file: No such file or directory
I have read about some other problem’s with libncurses.so.5, but nothing in debug context.
How to get it run?
Henning