Hi !
OS Windows 10
Platformio v2.3.1
VS Code
Device - ESP32 devkit v1
I’m new for platformio and try to familiar with this platform based on this tutorial and create first project - BLINK _LED
But after printing code (code is correct, port is correct) i try to UPLOAD on device - nothing happened in TERMINAL window - code not uploading on device.
Window PROBLEMS = No problems wave been detected on the workplace
But in window output identified 2 ERRORS:
[error] Bad progress location: platformio-ide.projectTasks
[error] Cannot read property ‘length’ of null:
at Object.s [as parseHex] (file:///C:/Users/user/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:6:7640)
The errors you are showing are however not relevant for uploading. They come from the VSCode extension and also occur for me, but still everything normally works.
How exactly are you uploading and opening the serial monitor? You use the project task “Upload and Monitor” (or equivalent “Upload”, then “Monitor”) right?
I also notice that you use Serial.begin(115200); in the code, so you must configure PlatformIO to use that same baud rate, per monitor_speed = 115200 in the platformio.ini, per documentation.
Try temporarily disabling all extensions but C/C++ by Microsoft and PlatfomIO, then Ctrl+Shift+P → Rebuild IntelliSense in VSCode, then try “Upload and Monitor” again. There’s got to appear output for uploading and monitoring.