I am using PlatformIO with VScode and I setup a new project for my brand new microcontroller (STM32L152RET6).
I created a main.cpp file and added a few lines in order to let the led blink. So no dependencies. I am including the “mbed.h” file.
First VSCode says that the mbed.h is not found, but I don’t know if this is important.
I can build the project, but when I am trying to upload it to the device then the following error occured:
> Executing task: platformio.exe run --target upload <
[09/30/17 17:18:33] Processing nucleo_l152re (platform: ststm32; board: nucleo_l152re; framework: mbed)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PackageManager: Installing tool-stm32duino @ ~1.0.0
Downloading [------------------------------------] 0%
Please manually remove file `C:\Users\phoef\.platformio\packages\_tmp_installing-rqsuac-package\tool-stm32duino-windows-1.0.0.tar.gz`
Warning! Package Mirror: [Error 32] Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird: 'C:\\Users\\phoef\\.platformio\\packages\\_tmp_installing-rqsuac-package\\tool-stm32duino-w
indows-1.0.0.tar.gz'
Looking for other mirror...
Downloading [------------------------------------] 0%
Please manually remove file `C:\Users\phoef\.platformio\packages\_tmp_installing-dkggfn-package\tool-stm32duino-windows-1.0.0.tar.gz`
Warning! Package Mirror: [Error 32] Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird: 'C:\\Users\\phoef\\.platformio\\packages\\_tmp_installing-dkggfn-package\\tool-stm32duino-w
indows-1.0.0.tar.gz'
Looking for other mirror...
Error: Could not install 'tool-stm32duino' with version requirements '~1.0.0' for your system 'windows_x86'.
If you use Antivirus, it can block PlatformIO Package Manager. Try to disable it for a while.
Der Terminalprozess wurde mit folgendem Exitcode beendet: 1
Sorry some text passages are in German…
I even don’t know why the stm32duino library is needed? I think I set up a project using mbed?
I followed your guidance and removed the whole .platformio folder.
After starting VScode again, PlatformIO has been re-installed. After the installation finished I re-started VScode.
First, I had some troubles with the framework. I manually uninstalled the mbed framework from within the PIO Home and re-installed it.
Then, I am building the small sample project for Nucleo, but the following error occurs.
Using PlatformIO with VSCode on Windows 10 with lastest update.
Already tried allowing platformio.exe and pio.exe on firewall as well as disabling it completely. Also tried disabling Windows Defender (I have no other antivirus software installed) all together. No success so far.
PackageManager: Installing tool-mkspiffs @ ~1.102.0
Downloading [####--------------------------------] 13%
Please manually remove file `C:\Users\joaohenrique\.platformio\packages\_tmp_installing-1htljt-package\tool-mkspiffs-windows-1.102
.0.tar.gz`
Warning! Package Mirror: [Error 32] O arquivo jß estß sendo usado por outro processo: 'C:\\Users\\joaohenrique\\.platformio\\packa
ges\\_tmp_installing-1htljt-package\\tool-mkspiffs-windows-1.102.0.tar.gz'
Looking for other mirror...
Downloading [##################------------------] 51% 00:00:04
Please manually remove file `C:\Users\joaohenrique\.platformio\packages\_tmp_installing-dd3er4-package\tool-mkspiffs-windows-1.102
.0.tar.gz`
Warning! Package Mirror: [Error 32] O arquivo jß estß sendo usado por outro processo: 'C:\\Users\\joaohenrique\\.platformio\\packa
ges\\_tmp_installing-dd3er4-package\\tool-mkspiffs-windows-1.102.0.tar.gz'
Looking for other mirror...
Error: Could not install 'tool-mkspiffs' with version requirements '~1.102.0' for your system 'windows_amd64'.
If you use Antivirus, it can block PlatformIO Package Manager. Try to disable it for a while.
The terminal process terminated with exit code: 1
PackageManager: Installing tool-stm32duino @ ~1.0.0
Downloading [------------------------------------] 0%
Please manually remove file C:\Users\jerry\.platformio\packages\_tmp_installing-1ecpas-package\tool-stm32duino-windows-1.0.0.tar.gz
Warning! Package Mirror: [Error 32] : 'C:\Users\Jerry\.platformio\packages\_tmp_installing-1ecpas-package\tool-stm32duino-windows-1.0.0.tar.gz’
Looking for other mirror…
Downloading [------------------------------------] 0%
Please manually remove file C:\Users\Jerry\.platformio\packages\_tmp_installing-udb5mp-package\tool-stm32duino-windows-1.0.0.tar.gz
Warning! Package Mirror: [Error 32] : 'C:\Users\Jerry\.platformio\packages\_tmp_installing-udb5mp-package\tool-stm32duino-windows-1.0.0.tar.gz’
Looking for other mirror…
Error: Could not install ‘tool-stm32duino’ with version requirements ‘~1.0.0’ for your system ‘windows_amd64’.
If you use Antivirus, it can block PlatformIO Package Manager. Try to disable it for a while.
Just formatted my PC using the “Reset this PC” Windows 10 feature and, surprisingly, after installing VSCode and PlatformIO again, the problem persists. I don’t know what else to try anymore.
Is there anyway to download this tool-mkspiffs-windows-1.102.0.tar.gz manually? If so, in which directory should I put it?
I had the same issue on VS Code version:
------------------------------------------------------------------------------------------------------------------------
PackageManager: Installing tool-mkspiffs @ ~1.102.0
Downloading [#########---------------------------] 26%
Please manually remove file C:\Users\..\.platformio\packages\_tmp_installing-avvyrv-package\tool-mkspiffs-windows-1.102.0.tar.gz
Warning! Package Mirror: [Error 32] The process cannot access the file because it is being used by another process: 'C:\Users\…\.platformio\packages\_tmp_installing-avvyrv-package\tool-mkspiffs-windows-1.102.0.tar.gz’
Looking for other mirror…
Downloading [##################------------------] 50%
Please manually remove file C:\Users\..\.platformio\packages\_tmp_installing-urcus9-package\tool-mkspiffs-windows-1.102.0.tar.gz
Warning! Package Mirror: [Error 32] The process cannot access the file because it is being used by another process: 'C:\Users\…\.platformio\packages\_tmp_installing-urcus9-package\tool-mkspiffs-windows-1.102.0.tar.gz’
Looking for other mirror…
Error: Could not install ‘tool-mkspiffs’ with version requirements ‘~1.102.0’ for your system ‘windows_amd64’.
If you use Antivirus, it can block PlatformIO Package Manager. Try to disable it for a while.
Was trying to reinstall pio few times. And after one of next attempts pio upgrade - upload it started to work.
Magic