当前位置:网站首页>Failure analysis and solution of vscode PIO creation project
Failure analysis and solution of vscode PIO creation project
2022-07-23 17:09:00 【perseverance52】
VSCode PIO Create project failure analysis and solutions
- Stating that similar problems cannot cure all diseases , It may be helpful just as a reference , It may not help . Everyone's computer configuration and system are different , It's hard for software to give consistent answers to problems , The text is for reference only , Just as a personal experience to solve problems to share and summarize .
Take a screenshot of the problem phenomenon
stay
PIOWhen you create a project , No matter what development board model you choose , Failed to create the project , Pop up the following window :

- The text message is as follows :
Could not initialize project
PIO Core Call Error: "The current working directory C:\Users\Administrator\Documents\PlatformIO\Projects\esp32c3_option will be used for the project.\r\n\r\nThe next files/directories have been created in C:\Users\Administrator\Documents\PlatformIO\Projects\esp32c3_option\r\ninclude - Put project header files here\r\nlib - Put here project specific (private) libraries\r\nsrc - Put project source files here\r\nplatformio.ini - Project Configuration File\r\nResolving esp32-c3-devkitm-1 dependencies...\r\nTool Manager: Installing platformio/framework-arduinoespressif32 @ ~3.20003.0\r\nDownloading\r\nUnpacking\r\nTool Manager: [email protected] has been installed!\r\nAlready up-to-date.\r\nUpdating metadata for the vscode IDE...\r\n\n\nError: Processing esp32-c3-devkitm-1 (platform: espressif32; board: esp32-c3-devkitm-1; framework: arduino)\r\n--------------------------------------------------------------------------------\r\nValueError: source code string cannot contain null bytes:\r\n File "C:\Users\Administrator\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Script\Main.py", line 1401:\r\n _exec_main(parser, values)\r\n File "C:\Users\Administrator\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Script\Main.py", line 1365:\r\n _main(parser)\r\n File "C:\Users\Administrator\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Script\Main.py", line 1033:\r\n SCons.Script._SConscript._SConscript(fs, script)\r\n File "C:\Users\Administrator\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Script\SConscript.py", line 285:\r\n exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)\r\n========================== [FAILED] Took 2.38 seconds =========================="
I guess this problem is when I first created a project , Due to the long configuration time , Maybe we shut it down without paying attention and waiting for the project to be ready , Wait until the second time you use to create a project , I found that I couldn't create it anyway , Because when you first create a project , The system will download relevant development support components by default , It will take quite a long time to set up the project , Maybe we broke it during the download , The configuration file is incomplete , Second, each time you create a project, you will access the corresponding components , And the components are incomplete and missing , As a result, the subsequent creation projects fail .
Unable to load PIO Home page
- Please refer to :《VSCode: PlatformIO The home page is always displayed loading Solution 》
terms of settlement
- First in
VSCodeInside , FindPIOPlug in and uninstall , Then close itVSCodeSoftware . - find
PIODirectory of historical installation :C:\Users\Administrator\.platformio, Will be dotted.platformioDelete all folders . - Reopen
VSCodeSoftware , In the plug-in management bar on the left , findPIOAnd reinstall . - If it does PIO Icon , Then open it PIO Home page , find
Platformsmenu , findFrameworksIt opens at , Install the framework environment developed by yourself .
image
ArduinoUnder the development framework , You can choose the corresponding common firmware below to install , Similar toArduino IDEChoose to install different development boards .ATMelAVRIt contains common UNO、nano Development board , If you want to be based on Arduino Framework to develop ESP32 as well as ESP8266 Then clickEspressif 32andEspressif 8266

- Firmware version selection

If the development is like ESP32C3 When comparing new models , It is recommended to install the latest version , Because if you choose to install a lower version, you may not have this model , I suggest you choose the latest firmware version to install , If there are no special requirements .
边栏推荐
猜你喜欢

详解一次SQL优化

The first stage of basic knowledge of numpy data analysis (numpy Foundation)

【31. 走迷宫(BFS)】

微机原理与技术接口随堂练习

Function secondary development / plug-in development of JMeter (detailed version)

Case analysis of building campus information management system with low code

Notes on Microcomputer Principle and technical interface

AutoCAD进阶操作

零基础怎么自学软件测试?十年测试老鸟最强软件测试学习路线图

VSCode PIO创建工程失败分析和解决办法
随机推荐
Object.defineProperty方法、数据代理
目前有哪些年利率6%左右的保本理财产品?
[mysql] I. MySQL starts
Distance IOU loss: faster and better learning for bounding box regression
浏览器四大内核
pinia(菠萝)
Acquisition of positional reliability in accurate target detection
pwn入门(3)堆
腾讯撕开中国NFT的“遮羞布”
Eureka notes
IDEA中给项目添加依赖的jar包
Is it safe for online account managers to open accounts when choosing securities companies in flush
软件测试计划包括哪些内容,测试计划如何编写。分享测试计划模板
[untitled]
【Web漏洞探索】SQL注入漏洞
Shell | ssh失败原因及解决方法不完全总结
拼多多APP商品详情接口获取activity_id值(拼多多activity_id接口)
移动、电信、联通:5G To B的花式解法
keras——accuracy_ Score formula
MySQL 啥时候用表锁,啥时候用行锁?