VSCode im Einsatz: Errors zu PlatformIO - ggf. werf ich PIO einfach kpl raus...

say_hello

say_hello

Dauergast
179
Tach Community,


vorweg: euch allen noch ein frohes neues Jahr!:)

bin nicht 100% sicher, ob das Unterforum hier das richtige ist. Da ich aber kein besseres für die IDE /& Editor-Frage hier gefunden hab stelle ich das einfach mal hier rein.

Die Frage dreht sich um VSCode: ich glaube dass ich hier irgendwie den VSCode falsch aufgesetzt habe - oder sagen wir - dass ich ggf. PlatformIO wieder rausschmeißen sollte!?

Hintergrund: ich hab VSCode auf einem Linux (MX) Notebook am laufen. Da läuft es total problemlos. Aber bei mir im Büro, auf einem Windows-Rechner, da hab ich es mit einigen Zusätzen noch ausgestattet u.a. mit - PlatformIO und einigen anderen Dingen für die up-Programmierung.
-

hier erhalte ich einige Errors.


Also die Geschichte ist die: bei dem Versuch ein einfaches Python-Script im Terminal auszuführen bekomme ich derbe Fehler.



in einem Popup wird folgendes angezeigt;
Code:
failed to launch GDB: .pionit:15 Error in Sourced Command  file
Remode Communication Errors target disconnected: no Error (from interpreter-exec console "source.pionit")


ferne noch diese Meldung:

Code:
Processing esp32dev (platform: espressif32; board: esp32dev; framework: arduino)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: [url]https://docs.platformio.org/page/boards/espressif32/esp32dev.html[/url]
PLATFORM: Espressif 32 (1.10.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:
- framework-arduinoespressif32 2.10003.190916 (1.0.3)
- tool-esptoolpy 1.20600.0 (2.6.0)
- toolchain-xtensa32 2.50200.80 (5.2.0)
LDF: Library Dependency Finder -> [url]http://bit.ly/configure-pio-ldf[/url]
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 26 compatible libraries
Scanning dependencies...
No dependencies
Building in debug mode
Retrieving maximum program size .pio\build\esp32dev\firmware.elf
Checking size .pio\build\esp32dev\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [          ]   4.5% (used 14628 bytes from 327680 bytes)
Flash: [==        ]  15.9% (used 208616 bytes from 1310720 bytes)
========================= [SUCCESS] Took 1.91 seconds =========================
Reading symbols from c:\Users\Kasper\Documents\PlatformIO\Projects\ESP\.pio\build\esp32dev\firmware.elf...
done.
PlatformIO Unified Debugger -> [url]http://bit.ly/pio-debug[/url]
PlatformIO: debug_tool = esp-prog
PlatformIO: Initializing remote target...
Open On-Chip Debugger  v0.10.0-esp32-20190708 (2019-07-08-11:04)
Licensed under GNU GPL v2
For bug reports, read
    [url]http://openocd.org/doc/doxygen/bugs.html[/url]
none separate
adapter speed: 20000 kHz
Info : Configured 2 cores
esp32 interrupt mask on
Info : tcl server disabled
Info : telnet server disabled
Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6010, description '*', serial '*' at bus location '*'

Warn : Flash driver of esp32.flash does not support free_driver_priv()
Warn : Flash driver of irom does not support free_driver_priv()
Warn : Flash driver of drom does not support free_driver_priv()
.pioinit:15: Error in sourced command file:
Remote communication error.  Target disconnected.: No error.



und ein popup geht dann noch auf:

failed to launch GDB: .pionit:15 Error in Sourced Command file
Remode Communication Errors target disconnected: no Error (from interpreter-exec console "source.pionit")

und wenn ich dann weiter fortfahre



Code:
UTOMATICALLY GENERATED FILE. PLEASE DO NOT MODIFY IT MANUALLY

// PIO Unified Debugger
//
// Documentation: https://docs.platformio.org/page/plus/debugging.html
// Configuration: https://docs.platformio.org/page/projectconf/section_env_debug.html

{
    "version": "0.2.0",
    "configurations": [
       
        {
            "type": "platformio-debug",
            "request": "launch",
            "name": "PIO Debug",
            "executable": "c:/Users/Kasper/Documents/PlatformIO/Projects/ESP/.pio/build/esp32dev/firmware.elf",
            "projectEnvName": "esp32dev",
            "toolchainBinDir": "C:/Users/Kasper/.platformio/packages/toolchain-xtensa32/bin",
            "preLaunchTask": {
                "type": "PlatformIO",
                "task": "Pre-Debug"
            },
            "internalConsoleOptions": "openOnSessionStart"
        },
        {
            "type": "platformio-debug",
            "request": "launch",
            "name": "PIO Debug (skip Pre-Debug)",
            "executable": "c:/Users/Kasper/Documents/PlatformIO/Projects/ESP/.pio/build/esp32dev/firmware.elf",
            "projectEnvName": "esp32dev",
            "toolchainBinDir": "C:/Users/Kasper/.platformio/packages/toolchain-xtensa32/bin",
            "internalConsoleOptions": "openOnSessionStart"
        }
    ]
}

Ich glaube dass ich hier irgendwie den VSCode falsch aufgesetzt habe - oder sagen wir - dass ich ggf. PlatformIO wieder rausschmeißen sollte!?

Also - ich glaub dass mein Problem ist dass ich hier bei VSCode im Einsatz immer Errors zu PlatformIO bekomme: - ggf. werf ich PIO einfach kpl raus...!?

Darüber hinaus: Das sieht so aus, als würde das Script auf einem ESP32 starten wollen. Ich denke dass hier der Fehler liegt.

Bezogen auf den VSCode Config-Error;: ich glaube dass ich hier nochmals genauer nachsehen sollte.
VScode verwendet einen C++ Debugger; ich werde mal versuchen den irgendwie einzustellen, sodass es Python nehmen soll.
Ich guck mal nach und versuche weiterzukommen. Python - Visual Studio Marketplace


Nochmals: euch allen noch ein frohes neues Jahr!:)

Viele Grüße
Say
 
Zuletzt bearbeitet:
ich hatte vor einiger Zeit mal mit Board 8266 bzw. 32 an dem Rechner experimentiert. Damit hat das vielleicht zu tun.

Also - anders gesagt: Ich denk wenn ich das device wieder anschließe dann wird sich wohl alles kpl anders verhalten. Ich hatte da letzes Jahr ein ESP-Board 8266 bzw. 32 angeschlossen dann PlatformIO und sonstige Erweiterungen. Diesbezüglich kommen jetzt halt auch die vielen Meldung.

...( und auch eine ESP based IDE )

a. Install uPyCraft IDE - Linux Ubuntu | Random Nerd Tutorials
b. Install uPyCraft IDE - Windows PC | Random Nerd Tutorials

Werde mich nun nochmals um das Setup von VSCode kümmern - darüber hinaus: natürlich hier Python - Visual Studio Marketplace

Python extension for Visual Studio Code
A Visual Studio Code extension with rich support for the Python language (for all actively supported versions of the language: >=3.6), including features such as IntelliSense, linting, debugging, code navigation, code formatting, Jupyter notebook support, refactoring, variable explorer, test explorer, snippets, and more!

Quick start
Step 1. Install a supported version of Python on your system (note: that the system install of Python on macOS is not supported).
Step 2. Install the Python extension for Visual Studio Code.
Step 3. Open or create a Python file and start coding!
Set up your environment
Select your Python interpreter by clicking on the status bar

hier Python - Visual Studio Marketplace

Melde mich wieder,

Euch beiden nochmals vielen Dank!
 

Ähnliche Themen

say_hello
Antworten
0
Aufrufe
288
say_hello
say_hello
say_hello
Antworten
0
Aufrufe
479
say_hello
say_hello
bluedesire
Antworten
9
Aufrufe
311
holms
holms
Zurück
Oben Unten