[文章]鸿蒙系统-爱之初体验

阅读量0
1
0
`     首先感谢电子发烧友举办此次活动,感谢润和和华为,更特别感谢绿波电龙,领到板子已经很久了,年底事情也多,另外2020看确实是一个不平凡的一年,这几天本来想好利用这个时间来感受一下鸿蒙,跟着官方的文档进行了,发现要安装的工具实在是太多了,这期间重装系统两次,到最后还是有一些问题没有解决。
    先来看一下板子采用的是层叠式插拔设计,这也是开发板常用的设计,板子的做工不错,设计紧凑,中规中矩,通讯接口采用的是TYPE-C,主控采用的是HI3861,另外附带一些常见的传感器模块,以及一块OLED屏。


       先是按照官方的文档
搭建环境
或者参考连老师的文档《
HarmonyOS 设备开发入门
》,
VS Code,
Node js,JDK, HPM, DDT,C/C++,Python3.8,NPM,环境有点多,有些还需要手动添加系统变量,搭建完后;

1609662811(1).jpg

   注意系统环境变量的添加,接下来再跟着官方的文档在VS下
导入和配置工程
在官方给的
GITHUB源码链接
下载工程按照文档在VS中操作,下载的代码解压有可能会报错;

1609692550(1).jpg

解压完后导入到配置目录,不过这两天在VS里串口的驱动总是安装不上去,一直会报错,到目前为止还没有找到原因;





What is the Baud Rate? The default is 115200. Enter:

What is the Data Bits? The default is 8. Enter:

What is the Stop Bits? The default is 1. Enter:

Set endline characters as "
"? The default is 0,  Enter 1 to set. Enter:

Unable to open serial port: 27 - Error: Opening 27: File not found

The port name:

COM28

COM27

Pick the one for openning: 27

What is the Baud Rate? The default is 115200. Enter: 921600

What is the Data Bits? The default is 8. Enter: 8

What is the Stop Bits? The default is 1. Enter: 1

Set endline characters as "
"? The default is 0,  Enter 1 to set. Enter: 0

Unable to open serial port: 27 - Error: Opening 27: File not found

The port name:

COM28

COM27

Pick the one for openning:


1609694741(1).jpg
1609688411(1).jpg

另外在配置好路径后,点构建也会出现报错的问题,也还没有找到原因;

20210104024231.jpg


(node:9888) UnhandledPromiseRejectionWarning: Error: connect ENOENT undefined
    at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1134:16)
(node:9888) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:9888) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
所以在烧录的时候可能是由于串口的驱动在VS里没有设置好,所以烧录不了;
1609694904(1).png


进步的最好方法就是想办法解决问题,同样希望各路大神不吝赐教,感激不尽,此次初体验就至此,同时希望官方能整合一款能通用的开发软件。





`
afb0a0f86ef5ff64723a148b568de10.jpg
1609691384(1).jpg

回帖

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容图片侵权或者其他问题,请联系本站作侵删。 侵权投诉
链接复制成功,分享给好友