Tach Community, vorweg: euch allen noch ein frohes neues Jahr!:) 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;
1 | failed to launch GDB: .pionit:15 Error in Sourced Command file |
2 | Remode Communication Errors target disconnected: no Error (from interpreter-exec console "source.pionit") |
ferne noch diese Meldung:
1 | Processing esp32dev (platform: espressif32; board: esp32dev; framework: arduino) |
2 | -------------------------------------------------------------------------------- |
3 | Verbose mode can be enabled via `-v, --verbose` option |
4 | CONFIGURATION:]https://docs.platformio.org/page/boards/espressif32/esp32dev.html |
5 | PLATFORM: Espressif 32 (1.10.0) > Espressif ESP32 Dev Module |
6 | HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash |
7 | 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) |
8 | PACKAGES: |
9 | - framework-arduinoespressif32 2.10003.190916 (1.0.3) |
10 | - tool-esptoolpy 1.20600.0 (2.6.0) |
11 | - toolchain-xtensa32 2.50200.80 (5.2.0) |
12 | LDF: Library Dependency Finder -> ]http:// configure-pio-ldf |
13 | LDF Modes: Finder ~ chain, Compatibility ~ soft |
14 | Found 26 compatible libraries |
15 | Scanning dependencies... |
16 | No dependencies |
17 | Building in debug mode |
18 | Retrieving maximum program size .pio\build\esp32dev\firmware.elf |
19 | Checking size .pio\build\esp32dev\firmware.elf |
20 | Advanced Memory Usage is available via "PlatformIO Home > Project Inspect" |
21 | RAM: [ ] 4.5% (used 14628 bytes from 327680 bytes) |
22 | Flash: [== ] 15.9% (used 208616 bytes from 1310720 bytes) |
23 | ========================= [SUCCESS] Took 1.91 seconds ========================= |
24 | Reading symbols from c:\Users\Kasper\Documents\PlatformIO\Projects\ESP\.pio\build\esp32dev\firmware.elf... |
25 | done. |
26 | PlatformIO Unified Debugger -> http:// pio-debug |
27 | PlatformIO: debug_tool = esp-prog |
28 | PlatformIO: Initializing remote target... |
29 | Open On-Chip Debugger v0.10.0-esp32-20190708 (2019-07-08-11:04) |
30 | Licensed under GNU GPL v2 |
31 | For bug reports, read |
32 | ]http://openocd.org/doc/doxygen/bugs.html[/url] |
33 | none separate |
34 | adapter speed: 20000 kHz |
35 | Info : Configured 2 cores |
36 | esp32 interrupt mask on |
37 | Info : tcl server disabled |
38 | Info : telnet server disabled |
39 | Error: no device found |
40 | Error: unable to open ftdi device with vid 0403, pid 6010, description '*', serial '*' at bus location '*' |
41 | |
42 | Warn : Flash driver of esp32.flash does not support free_driver_priv() |
43 | Warn : Flash driver of irom does not support free_driver_priv() |
44 | Warn : Flash driver of drom does not support free_driver_priv() |
45 | .pioinit:15: Error in sourced command file: |
46 | Remote communication error. Target disconnected.: No error. |
und ein popup geht dann noch auf: [quote] failed to launch GDB: .pionit:15 Error in Sourced Command file Remode Communication Errors target disconnected: no Error (from interpreter-exec console "source.pionit") [/quote] und wenn ich dann weiter fortfahre
1 | UTOMATICALLY GENERATED FILE. PLEASE DO NOT MODIFY IT MANUALLY |
2 | |
3 | // PIO Unified Debugger |
4 | // |
5 | // Documentation: https://docs.platformio.org/page/plus/debugging.html |
6 | // Configuration: https://docs.platformio.org/page/projectconf/section_env_debug.html |
7 | |
8 | { |
9 | "version": "0.2.0", |
10 | "configurations": [ |
11 | |
12 | { |
13 | "type": "platformio-debug", |
14 | "request": "launch", |
15 | "name": "PIO Debug", |
16 | "executable": "c:/Users/Kasper/Documents/PlatformIO/Projects/ESP/.pio/build/esp32dev/firmware.elf", |
17 | "projectEnvName": "esp32dev", |
18 | "toolchainBinDir": "C:/Users/Kasper/.platformio/packages/toolchain-xtensa32/bin", |
19 | "preLaunchTask": { |
20 | "type": "PlatformIO", |
21 | "task": "Pre-Debug" |
22 | }, |
23 | "internalConsoleOptions": "openOnSessionStart" |
24 | }, |
25 | { |
26 | "type": "platformio-debug", |
27 | "request": "launch", |
28 | "name": "PIO Debug (skip Pre-Debug)", |
29 | "executable": "c:/Users/Kasper/Documents/PlatformIO/Projects/ESP/.pio/build/esp32dev/firmware.elf", |
30 | "projectEnvName": "esp32dev", |
31 | "toolchainBinDir": "C:/Users/Kasper/.platformio/packages/toolchain-xtensa32/bin", |
32 | "internalConsoleOptions": "openOnSessionStart" |
33 | } |
34 | ] |
35 | } |
Ich glaube dass ich hier irgendwie den VScode falsch aufgesetzt habe - oder sagen wir - dass ich ggf. PlatformIO wieder rausschmeißen sollte!? Denn es sieht so aus, als würde das Script auf einem ESP32 starten wollen. VSC verwendet einen C++ Debugger, ich muss den VSCode dazu bringen und irgendwie einstellen, dass Python genommen wird. Ich hab schon auch auf das Manual hier noch geguckt - https://marketplace.visualstudio.com/items?itemName=ms-python.python Set up your environment[/quote] was meint ihr denn!?