Skip to content

Commit

Permalink
modified: docs/.vuepress/config.js
Browse files Browse the repository at this point in the history
	new file:   docs/workshop/hangzhou/README.md
	new file:   docs/workshop/hangzhou/openCPU_setup.md
	new file:   docs/workshop/hangzhou/pic/1.PNG
	new file:   docs/workshop/hangzhou/pic/10.PNG
	new file:   docs/workshop/hangzhou/pic/11.PNG
	new file:   docs/workshop/hangzhou/pic/12.PNG
	new file:   docs/workshop/hangzhou/pic/13.PNG
	new file:   docs/workshop/hangzhou/pic/14.PNG
	new file:   docs/workshop/hangzhou/pic/15.PNG
	new file:   docs/workshop/hangzhou/pic/16.PNG
	new file:   docs/workshop/hangzhou/pic/17.PNG
	new file:   docs/workshop/hangzhou/pic/18.PNG
	new file:   docs/workshop/hangzhou/pic/19.PNG
	new file:   docs/workshop/hangzhou/pic/2.PNG
	new file:   docs/workshop/hangzhou/pic/20.PNG
	new file:   docs/workshop/hangzhou/pic/21.PNG
	new file:   docs/workshop/hangzhou/pic/22.PNG
	new file:   docs/workshop/hangzhou/pic/23.PNG
	new file:   docs/workshop/hangzhou/pic/24.PNG
	new file:   docs/workshop/hangzhou/pic/25.PNG
	new file:   docs/workshop/hangzhou/pic/26.PNG
	new file:   docs/workshop/hangzhou/pic/27.PNG
	new file:   docs/workshop/hangzhou/pic/28.PNG
	new file:   docs/workshop/hangzhou/pic/3.PNG
	new file:   docs/workshop/hangzhou/pic/30.PNG
	new file:   docs/workshop/hangzhou/pic/31.PNG
	new file:   docs/workshop/hangzhou/pic/32.PNG
	new file:   docs/workshop/hangzhou/pic/33.PNG
	new file:   docs/workshop/hangzhou/pic/34.PNG
	new file:   docs/workshop/hangzhou/pic/35.PNG
	new file:   docs/workshop/hangzhou/pic/36.PNG
	new file:   docs/workshop/hangzhou/pic/4.PNG
	new file:   docs/workshop/hangzhou/pic/5.PNG
	new file:   docs/workshop/hangzhou/pic/6.PNG
	new file:   docs/workshop/hangzhou/pic/7.PNG
	new file:   docs/workshop/hangzhou/pic/8.PNG
	new file:   docs/workshop/hangzhou/pic/9.PNG
	new file:   package-lock.json
  • Loading branch information
xiaoyusu committed Dec 10, 2018
1 parent e169950 commit f01cbbe
Show file tree
Hide file tree
Showing 39 changed files with 15,799 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ module.exports = {
}
]
},
{
text: "LiteOS 实战训练营材料",
items: [{
text: "OpenCPU方案介绍及实战演示",
link: "/workshop/hangzhou/"
}
]
},
//{
// text: "零基础端到端开发",
// items: [{
Expand Down Expand Up @@ -380,6 +388,13 @@ module.exports = {
//"./wifi"
]
}],
"/workshop/hangzhou/": [{
title: "Workshop-杭州站",
collapsable: true,
children: [
"./openCPU_setup"
]
}],
"/partners/industry/": [{
title: "案例",
collapsable: false,
Expand Down
5 changes: 5 additions & 0 deletions docs/workshop/hangzhou/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# OpenCPU方案介绍及实战演示

本文档旨在帮助开发者配置openCPU开发环境。文档中涉及的安装包都在开发环境工具包中给出。安装时请尽量安装到默认路径,否则可能需要开发者手动添加环境变量。

2019年1月11日在杭州举办的Workshop,将有现场手把手教学体验OpenCPU方案的机会,欢迎大家来现场交流!
132 changes: 132 additions & 0 deletions docs/workshop/hangzhou/openCPU_setup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
# openCPU开发环境安装指导

本文档旨在帮助开发者配置openCPU开发环境。文档中涉及的安装包都在开发环境工具包中给出。安装时请尽量安装到默认路径,否则可能需要开发者手动添加环境变量。
## 1.安装GCC Compiler
GCC Compiler安装包为gcc-arm-none-eabi-4_9-2015q2-20150609-win32.exe。打开安装程序,按照默认安装即可。

![1](./pic/1.png)

![2](./pic/2.png)

![3](./pic/3.png)

![4](./pic/4.png)

注意,在最后一步中,需要勾选add path to environment variable。否则需要手动将GCC Compiler安装路径添加到系统环境变量,如下图所示。

![5](./pic/5.png)

## 2.安装自动化构建工具Scons
Scons构建工具通过Python2.7编写,其它Python版本可能不兼容。因此需要先安装Python2.7。开发者可以通过开发环境工具包中的python-2.7.10.msi来安装。

![6](./pic/6.png)

![7](./pic/7.png)

![8](./pic/8.png)

注意上图,这里需要勾选添加路径。

![9](./pic/9.png)

![10](./pic/10.png)

至此完成了Python2.7的安装。但是,默认情况下Python脚本无法访问Windows系统API库,因此需要安装pywin32库。开发者可以通过开发环境工具包中的pywin32-220.win32-py2.7.exe来安装。

![11](./pic/11.png)

![12](./pic/12.png)

![13](./pic/13.png)

![14](./pic/14.png)

现在,开发者可以通过开发环境工具包中的scons-2.4.0-setup.exe来安装Scons,安装过程与pywin32类似。

![15](./pic/15.png)

![16](./pic/16.png)

![17](./pic/17.png)

![18](./pic/18.png)

## 3.安装Microsoft .NET Framework

开发者可通过开发环境工具包中NDP452-KB2901907-x86-x64-AllOS-ENU.exe安装。按照默认安装即可。

![19](./pic/19.png)

![20](./pic/20.png)

![21](./pic/21.png)

## 4.安装UEMonitor-3.22.0.14
通过开发环境工具包中提供的UEMonitor-3.22.0.14.msi进行安装。类似于串口调试工具,开发者可以通过该软件观察串口日志。

![22](./pic/22.png)

![23](./pic/23.png)

![24](./pic/24.png)

## 5.安装UEUpdaterUI-3.22.0.14

开发者可以通过该软件,从openCPU模组的主串口进行固件升级。安装包为UEUpdaterUI-3.22.0.14.msi。

![25](./pic/25.png)

![26](./pic/26.png)

## 6.安装UpdatePackage-3.22.0.14

通过UpdatePackage-3.22.0.14.msi进行安装。

![27](./pic/27.png)

![28](./pic/28.png)

## 7.验证开发环境

完成上述环境搭建步骤后,开发者可以通过开发环境工具包中的样例工程来验证开发环境是否搭建成功。比如,打开example目录下的OLED文件夹,打开其中的“命令提示符”,并输入命令```scons_new.bat```

![33](./pic/33.png)

![30](./pic/30.png)

若环境搭建成功,则会输出:

![31](./pic/31.png)

并且在工程目录下,会生成new.fwpkg文件。该文件就是openCPU方案需要烧录到模组中的firmware package。

![32](./pic/32.png)

若得到了上面的结果,则说明环境搭建成功。

## 8.常见问题及解决方法

### 8.1报 arm-none-eabi-gcc 错误

打开“命令提示符”,并输入命令```scons_new.bat```,出现```No such file or directory```的错误:

![34](./pic/34.png)

解决方案:
1. 查看系统环境变量是否正确配置。

2. 查找电脑中是否有文件与Compiler-GCC(GNU Tools ARM Embedded)重名。若有请将其删除。

### 8.2路径有误
若开发者在安装过程中修改了默认的安装路径,需要在scons_new.bat中的路径做相应的修改。

![35](./pic/35.png)

### 8.3路径中包含中文
若工程目录中含有中文,则编译过程中会出现下面的错误:

![36](./pic/36.png)

解决方案:

* 使用全英文路径。
Binary file added docs/workshop/hangzhou/pic/1.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/workshop/hangzhou/pic/10.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/workshop/hangzhou/pic/11.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/workshop/hangzhou/pic/12.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/workshop/hangzhou/pic/13.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/workshop/hangzhou/pic/14.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/workshop/hangzhou/pic/15.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/workshop/hangzhou/pic/16.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/workshop/hangzhou/pic/17.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/workshop/hangzhou/pic/18.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/workshop/hangzhou/pic/19.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/workshop/hangzhou/pic/2.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/workshop/hangzhou/pic/20.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/workshop/hangzhou/pic/21.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/workshop/hangzhou/pic/22.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/workshop/hangzhou/pic/23.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/workshop/hangzhou/pic/24.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/workshop/hangzhou/pic/25.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/workshop/hangzhou/pic/26.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/workshop/hangzhou/pic/27.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/workshop/hangzhou/pic/28.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/workshop/hangzhou/pic/3.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/workshop/hangzhou/pic/30.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/workshop/hangzhou/pic/31.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/workshop/hangzhou/pic/32.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/workshop/hangzhou/pic/33.PNG
Binary file added docs/workshop/hangzhou/pic/34.PNG
Binary file added docs/workshop/hangzhou/pic/35.PNG
Binary file added docs/workshop/hangzhou/pic/36.PNG
Binary file added docs/workshop/hangzhou/pic/4.PNG
Binary file added docs/workshop/hangzhou/pic/5.PNG
Binary file added docs/workshop/hangzhou/pic/6.PNG
Binary file added docs/workshop/hangzhou/pic/7.PNG
Binary file added docs/workshop/hangzhou/pic/8.PNG
Binary file added docs/workshop/hangzhou/pic/9.PNG
Loading

0 comments on commit f01cbbe

Please sign in to comment.