PlatformIO IDE在创建新项目抛出PIO Core Call Error,同时修改Monitor波特率
发布日期:2021-05-14 04:38:40 浏览次数:17 分类:博客文章

本文共 1069 字,大约阅读时间需要 3 分钟。

PIO Core Call Error: "The current working directory C:\\Users\\sscy\\Documents\\PlatformIO\\Projects\\platformled will be used for the project.\r\n\r\nThe next files/directories have been created in C:\\Users\\sscy\\Documents\\PlatformIO\\Projects\\platformled\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\n\n\nError: Detected unknown package 'framework-esp8266-nonos-sdk'"

上面是抛出的错误,是因为无法找到framework-esp8266-nonos-sdk这个包。

解决方法很简单,

方法1:打开C:\Users\sscy\Documents\PlatformIO\Projects文件夹,删掉当前的项目,然后关闭vscode,重新打开创建。

方法2:打开C:\\Users\\sscy\\Documents\\PlatformIO\\Projects\\platformled文件夹,删掉.pio文件夹,然后关闭vscode,重新打开项目。

 

由于Montor串口监控,默认使用9600波特率进行监控,导致都是乱码,需要改成115200.

C:\Users\sscy\.platformio\penv\Lib\site-packages\serial\tools进入这个文件夹,找到miniterm.py文件,将

parser.add_argument(

"baudrate",
nargs='?',
type=int,
help="set baud rate, default: %(default)s",
default=115200)

这句话中的default值改为115200.

然后删除本目录下的miniterm.pyc文件,再次开启串口监视器时会重新编译生成此文件。

上一篇:ES中match_phrase_prefix查询返回为空
下一篇:ESP8266-12F引脚接法

发表评论

最新留言

能坚持,总会有不一样的收获!
[***.219.124.196]2025年04月15日 23时42分02秒