mirror of
https://github.com/sipeed/sipeed_wiki.git
synced 2026-09-11 00:22:49 -05:00
update
This commit is contained in:
@@ -30,10 +30,30 @@ AXera-Pi 默认板卡没有存储介质,因此需要准备一张系统卡来
|
||||
|
||||
## 获取镜像
|
||||
|
||||
因为镜像文件比较大,因此这里仅提供百度云下载链接:
|
||||
因为镜像文件比较大,因此这里仅提供百度云下载链接。
|
||||
|
||||
前往百度云 [点我](https://eyun.baidu.com/s/3htTXfaG#sharelink/path=%2F%E4%B8%8B%E8%BD%BD%E7%AB%99%E6%96%87%E4%BB%B6%2FMaix-III%2FAXera%2Fsdk%2Frelease&parent_path=%2F%E6%B7%B1%E5%9C%B3%E7%9F%BD%E9%80%9F%E7%A7%91%E6%8A%80%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8) 下载文件,镜像包与校验文件都已经放在里面了。
|
||||
|
||||
用两个文件名来举例,其中文件命名规则如下(拖动滚动条来查看全部):
|
||||
|
||||
| 文件名 | 提供方 | 文件类型 | 适用芯片 | 镜像发行版 | 发布日期 |
|
||||
| -------------------------------------- | ------ | --------------- | -------- | ---------- | -------- |
|
||||
| sipeed_ax620a_debian11_20221009.zip | sipeed | 镜像压缩包 | ax620a | debian11 | 20221009 |
|
||||
| sipeed_ax620a_debian11_20221009.md5sum | | <p style="white-space:nowrap">md5sum 校验文件</p> | | | |
|
||||
|
||||
如果里面有多个镜像文件,那么建议下载最新的镜像文件。
|
||||
|
||||
校验文件需要在 Linux 环境中使用,windows10 及以上的用户可以使用 wsl 当作 Linux 环境。
|
||||
|
||||
使用方法为 `md5sum -c md5sum校验文件`。
|
||||
|
||||
.. details::点我查看校验 log
|
||||
|
||||
```bash
|
||||
root@desktop:$ md5sum -c sipeed_ax620a_debian11_20221009.md5sum
|
||||
sipeed_ax620a_debian11_20221009.zip: OK
|
||||
```
|
||||
|
||||
## 烧录镜像
|
||||
|
||||
### 准备工作
|
||||
|
||||
@@ -16,9 +16,6 @@ update:
|
||||
- 更新部分过期内容
|
||||
---
|
||||
|
||||
|
||||
> 编辑于2022.06.29
|
||||
|
||||
这里汇总一些常见问题,持续更新
|
||||
|
||||
## Programmer 相关
|
||||
@@ -77,6 +74,33 @@ update:
|
||||
|
||||
对于 20K 核心板来说可能是接线错了,自己检查一下线序或者检查一下核心板的 8pin 接口有没有被怼歪。
|
||||
|
||||
20K 核心板 JTAG 引脚定义可以在背部看到。
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>核心板</td>
|
||||
<td>5V0</td>
|
||||
<td>TMS</td>
|
||||
<td>TDO</td>
|
||||
<td>TCK</td>
|
||||
<td>TDI</td>
|
||||
<td>RX</td>
|
||||
<td>TX</td>
|
||||
<td>GND</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>调试器</td>
|
||||
<td>5V0</td>
|
||||
<td>TMS</td>
|
||||
<td>TDO</td>
|
||||
<td>TCK</td>
|
||||
<td>TDI</td>
|
||||
<td>TX</td>
|
||||
<td>RX</td>
|
||||
<td>GND</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||

|
||||
|
||||
### ID code mismatch
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 554 KiB After Width: | Height: | Size: 556 KiB |
@@ -241,7 +241,10 @@ Dock 板载了下载器,在 [安装IDE](https://wiki.sipeed.com/hardware/zh/ta
|
||||
确认自己使能了核心板。
|
||||
|
||||
### 成功烧录过一次外部 Flash 后 Programmer 软件无法再烧录
|
||||
|
||||
注意描述是成功烧录过一次 Flash。
|
||||
这种情况默认为启用了错误的引脚复用而导致下载器不能再识别到 FPGA 的 JTAG。解决办法是在芯片通电前将核心板上的 Flash 使能引脚拉高来阻止 FPGA 加载固件。使用金属将板子上的 Flash 短接后再通电即可解决。短接的具体位置见下图 Flash 处两侧的红框处。
|
||||
这种情况默认为启用了错误的引脚复用而导致下载器不能再识别到 FPGA 的 JTAG。可以短接 Flash 的 1、4 引脚,让芯片上电时不能正常读 FLASH 。
|
||||
|
||||

|
||||
|
||||
### 更多问题及其解决办法前往[相关问题](./../Tang-Nano-Doc/questions.md)查看
|
||||
@@ -277,9 +277,9 @@ Tang Primer 20K 是基于 [GW2A-V18PG256C8IC8I7](http://www.gowinsemi.com.cn/pro
|
||||
|
||||
3. 如果进行完上面的点灯操作后后感觉有压力,可以自己查漏补缺:
|
||||
可以在下面的这些网站学习 Verilog:
|
||||
+ 在线免费教程:[菜鸟教程](https://www.runoob.com/w3cnote/verilog-tutorial.html)(学习Verilog)
|
||||
+ 在线免费 FPGA 教程:[Verilog](https://www.asic-world.com/verilog/index.html)
|
||||
+ Verilog 刷题网站:[HDLBits](https://hdlbits.01xz.net/wiki/Main_Page)
|
||||
+ 在线免费教程:[Verilog 教程](https://www.runoob.com/w3cnote/verilog-tutorial.html)(学习Verilog)
|
||||
+ 在线免费 FPGA 教程:[Verilog](https://www.asic-world.com/verilog/index.html) (英文网站)
|
||||
+ Verilog 刷题网站:[HDLBits](https://hdlbits.01xz.net/wiki/Main_Page)(英文网站)
|
||||
+ 在线高云半导体视频教程:[点击这里](http://www.gowinsemi.com.cn/video_complex.aspx?FId=n15:15:26)
|
||||
|
||||
对 IDE 使用有疑问的话,可以查看官方的一些文档来熟悉相关内容
|
||||
@@ -294,11 +294,12 @@ Tang Primer 20K 是基于 [GW2A-V18PG256C8IC8I7](http://www.gowinsemi.com.cn/pro
|
||||
|
||||
## 例程汇总
|
||||
|
||||
https://github.com/sipeed/TangPrimer-20K-example
|
||||
github 链接:https://github.com/sipeed/TangPrimer-20K-example
|
||||
|
||||
部分教程:
|
||||
|
||||
- Lite 底板点灯 :<a href="https://wiki.sipeed.com/news/others/20k_lite_start/20k_lite_start.html" target="blank">点我跳转</a>
|
||||
- 例程指南: [点我跳转](./example.md)
|
||||
|
||||
## 交流方式
|
||||
|
||||
@@ -329,18 +330,22 @@ https://github.com/sipeed/TangPrimer-20K-example
|
||||
<!-- <img src="./assets/start/switch_1_on.png" alt="switch_1_on" width=20%> -->
|
||||
|
||||
### 如何下载到外部 FLASH
|
||||
|
||||
进行如下选项设置:
|
||||
<img src="./assets/flash_mode.png" alt="flash_mode" width=75%>
|
||||
|
||||
### 烧录后没反应或者引脚现象不对
|
||||
|
||||
首先确定选择了正确的型号,下图中的每一个参数都要求一致
|
||||
<img src="./assets/device_choose.png" alt="device_choose" width=75%>
|
||||
|
||||
然后检查自己的代码和对应的仿真波形是否满足要求
|
||||
|
||||
### 成功烧录过一次外部 Flash 后 Programmer 软件无法再烧录
|
||||
|
||||
注意描述是成功烧录过一次 Flash。
|
||||
这种情况默认为启用了错误的引脚复用而导致下载器不能再识别到 FPGA 的 JTAG。解决办法是在芯片通电前将核心板上的 Flash 使能引脚拉高来阻止 FPGA 加载固件。使用金属将板子上的 Flash 短接后再通电即可解决。短接的具体位置见下图 Flash 处两侧的红框处。
|
||||
|
||||
这种情况默认为启用了错误的引脚复用而导致下载器不能再识别到 FPGA 的 JTAG。可以短接 Flash 的 1、4 引脚,让芯片上电时不能正常读 FLASH 。
|
||||
|
||||

|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
# 一键烧录及脚本使用说明
|
||||
|
||||
|
||||
材料准备:
|
||||
- 内存卡+读卡器+荔枝派Nano+支持完整指令集的x86设备一台(电脑)
|
||||
|
||||
@@ -35,7 +34,7 @@ xxxx:这个镜像适用于什么分辨率的LCD上
|
||||
|
||||
若flash中已有系统,可通过:
|
||||
|
||||
1. 短接flash的 1、4 两脚,重新上电,上电后松开短接,即可重新进入fel模式,进行再次下载
|
||||
1. 短接flash的 1、4 两脚,然后重新上电,上电后松开短接,即可重新进入fel模式,进行再次下载
|
||||
2. 在启动到内核前,回车进入uboot,执行 `sf probe 0;sf erase 0 0x100000;reset`即可重新进入fel模式
|
||||
|
||||
## 一键烧录镜像(win环境---TF卡启动)
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
# 前言
|
||||
|
||||
|
||||
此篇为少量或无需配置的开发,可帮助您快速上手,串口输出、点屏等操作确认 Nano 完好~
|
||||
具体详细配置与解释说明,将在后文进行较为详细的介绍;如果您和笔者一样是个小白萌新,希望能给您的学习提供一点小小的tips;如果您已熟悉此流程,快速浏览即可 :)
|
||||
笔者所用环境为:
|
||||
@@ -323,7 +322,8 @@ popd
|
||||
```
|
||||
|
||||
#### 下载并运行
|
||||
1. 短接flash 1、4脚(当flash中无可引导代码时无需此步骤)
|
||||
|
||||
1. 短接 flash 1、4 脚(当flash中无可引导代码时无需此步骤)
|
||||
2. 连接USB
|
||||
3. 松开短接的引脚
|
||||
4. 输入下列指令
|
||||
|
||||
@@ -4,7 +4,6 @@ title: Zero i2c oled使用指南
|
||||
|
||||
## 硬件连接
|
||||
|
||||
|
||||
一般市面上买到的单色oled屏幕模块一般都是同时支持spi和i2c接口的,而默认一般都是spi接口模式,需要根据说明书调整模模块上电阻的位置来转换到i2c模式。我手中这个模块一般比较常见,分辨率是128\*64,需要焊接R1和R4,注意下方那个电阻位置要短接。
|
||||
|
||||

|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
title: Docker命令速查
|
||||
---
|
||||
|
||||
# Docker概念
|
||||
## Docker 概念
|
||||
|
||||
|
||||
`镜像` :只读的模板
|
||||
@@ -12,7 +12,7 @@ title: Docker命令速查
|
||||
|
||||
## Docker 安装
|
||||
|
||||
```
|
||||
```bash
|
||||
sudo apt-get install docker.io
|
||||
sudo gpasswd -a your_user_name docker #加入用户组
|
||||
sudo service docker restart
|
||||
@@ -25,8 +25,7 @@ docker下各文件默认存放在/var/lib/docker下
|
||||
|
||||
## Docker镜像操作
|
||||
|
||||
|
||||
```
|
||||
```bash
|
||||
docker search licheepi #搜索镜像
|
||||
docker pull zepan/licheepi #下载镜像
|
||||
docker run zepan/licheepi apt-get install -y xxx #在镜像中执行命令,安装某软件
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
# 荔枝派Zero
|
||||
|
||||
> 作者自述~~ 陈年旧文
|
||||
|
||||
## 缘起
|
||||
|
||||
那年仲夏之夜,我吃着荔枝DIY了荔枝派One。
|
||||
|
||||
@@ -337,3 +337,31 @@ It's suggested to use camera provided by Sipeed, this can reduce many troubles l
|
||||
kmodel is a kind of model explaining the structure and parameters of this model.
|
||||
|
||||
smodel requires Machine-code; Machine-code is a kind of encrypted way to encrypt the model. The development board can't use the smodel encrypted and generanted by other Machine-code.
|
||||
|
||||
## How to run multiple models in the same time
|
||||
|
||||
Try to run it in time-sharing instead of in the same time
|
||||
|
||||
If the RAM is big enough to load target models, then load them all and run rhem in time-sharing.
|
||||
|
||||
If the RAM is not big enough to load multiple models, try to load one model, and deinit it after finishing running it (use `kpu.deinit`), the load another model or rest models(if the RAM is big enough). Use `load_flash` mode to load model, read content from flash.
|
||||
|
||||
## How to load big model
|
||||
|
||||
Beacuse the limit of RAM in K210, if need load big model, try to load it from flash and run it.
|
||||
|
||||
The detailed usage can be found in github: [Click me](https://github.com/sipeed/MaixPy_scripts/tree/master/machine_vision/load_big_model)
|
||||
|
||||
## could not open port 'COMxx':Permission denied
|
||||
|
||||
This happens when the serial port is occupied. Try to close application which is using this serial port, or try to reboot computer to close all applications to avoid serial port occupied.
|
||||
|
||||
## Maix Dock serial port connect failed
|
||||
|
||||
Maix Dock cannot use MobaXterm or other software which does not support manual serial port flow control for serial communication.
|
||||
|
||||
To avoid wasting time, it is recommended to use MaixPy IDE for communication.
|
||||
|
||||
You can open terminal in MaixPy IDE top menu bar tools->open terminals->new terminal->Connect to serial ports ->select the correct serial port->baudrate 115200, to create a new terminal.
|
||||
|
||||

|
||||
@@ -318,12 +318,30 @@ Maixpy ide 挂着运行时内存不足,就会出现的常见错误,解决方
|
||||
|
||||
## 如何同时运行多个模型
|
||||
|
||||
其实也不是同时运行,就是分时运行。
|
||||
其实也不是同时运行,而是分时运行。
|
||||
|
||||
如果有足够内存,就一次性把几个模型加载到内存, 然后分别分时运行推理。
|
||||
|
||||
如果内存不足,加载第一个模型,运行后注销(使用 `kpu.deinit`),再加载运行第二个模型部分或全部模型。使用 `load_flash` 的方式加载模型,实时从 flash 读取内容。
|
||||
|
||||
## 如何加载大模型
|
||||
|
||||
由于 K210 的 RAM 的运行限制,当需要加载大模型文件时,可以通过直接 Flash 中动态加载并运行。
|
||||
|
||||
具体用法前往 github:
|
||||
|
||||
使用说明:[点我github](https://github.com/sipeed/MaixPy_scripts/blob/master/machine_vision/load_big_model/README_ZH.md)
|
||||
具体仓库:[点我github](https://github.com/sipeed/MaixPy_scripts/tree/master/machine_vision/load_big_model)
|
||||
|
||||
## could not open port 'COMxx':Permission 错误
|
||||
|
||||
这种情况是因为串口被占用了,自己将使用过串口的程序关闭掉就行。实在不会解决的话重启电脑也能达到关闭所有使用串口程序的效果。
|
||||
|
||||
## Maix Dock 串口不能用
|
||||
|
||||
Maix Dock 不能使用 MobaXterm 或其他 不支持手动串口流控制的软件 来进行串口通信。
|
||||
为了不浪费时间,建议使用 MaixPy IDE 来进行通信。
|
||||
|
||||
可以在 MaixPy IDE 顶部菜单栏 工具->打开终端->新终端->连接到串口->选择正确的串口->115200波特率 来新建一个终端,在这里面使用串口。
|
||||
|
||||

|
||||
@@ -273,6 +273,7 @@ endmodule
|
||||
### 接线说明
|
||||
|
||||
由于需要将核心板与下载器进行连线,这里说明一下所连接的对应端口。
|
||||
核心板的引脚可以在核心板背面看到。
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user