mirror of
https://github.com/sipeed/Maixduino.git
synced 2026-03-24 02:46:59 +01:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
57abaf8159 | ||
|
|
a9749d24ce | ||
|
|
c5023445b4 | ||
|
|
afc08d3dd1 | ||
|
|
38671731ce | ||
|
|
806c7dc762 |
28
LICENSE.md
Normal file
28
LICENSE.md
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
License
|
||||
======
|
||||
|
||||
All the source code in this repository is released under LGPL or Apache v2.0 license even more.
|
||||
|
||||
|
||||
All the sources created/modified by the repository owner are released under Apache v2.0 license and contains the following copyright notice:
|
||||
Copyright 2019 Sipeed Co.,Ltd.
|
||||
|
||||
Most of the source files contains license and copyright notice, please check the individual files for more information.
|
||||
Also check the license information in individual components directories.
|
||||
|
||||
```
|
||||
Copyright 2019 Sipeed Co.,Ltd.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
```
|
||||
65
README.md
65
README.md
@@ -1,43 +1,22 @@
|
||||
# Arduino Core for Kendryte K210
|
||||
## Windows
|
||||
### 1.首选项添加下列地址 然后打开开发版管理器下载开发包
|
||||
>https://bigbits.oss-cn-qingdao.aliyuncs.com/Arduino_for_k210/package_k210_index.json
|
||||
### 2.安装好之后添加工具链目录到PATH环境变量
|
||||
>C:\Users\\**(username)**\AppData\Local\Arduino15\packages\Kenduino\tools\riscv64-unknown-elf-gcc\8.2.0\bin
|
||||
### 3.安装[.Net core runtime](https://download.visualstudio.microsoft.com/download/pr/3f05ee2d-5372-43d6-9562-be86632a53d4/1361281426efa7ff206289adb0411f55/dotnet-runtime-3.0.0-preview3-27503-5-win-x64.exe)
|
||||
### 4.开发板选择Sipeed M1 Board 编程器选 k-flash
|
||||
### 5.连接开发板选对应的串口号
|
||||
### 6.编写程序 编译 上传 完成
|
||||
----
|
||||
## Ubuntu
|
||||
### 1.首选项添加下列地址 然后打开开发版管理器下载开发包
|
||||
>https://bigbits.oss-cn-qingdao.aliyuncs.com/Arduino_for_k210/package_k210_index.json
|
||||
### 2.需要解决usb串口访问权限
|
||||
>sudo usermode -a -G dialout **(username)**
|
||||
### 3.安装pyserial
|
||||
>pip3 install pyserial
|
||||
### 4.开发板选择Sipeed M1 Board 编程器选 k-flash
|
||||
### 5.连接开发板选对应的串口号
|
||||
### 6.编写程序 编译 上传 完成
|
||||
----
|
||||
## Windows
|
||||
### 1.Add the following address to the **Preferences** and open the **Boards Manager** to download the development kit.
|
||||
>https://bigbits.oss-cn-qingdao.aliyuncs.com/Arduino_for_k210/package_k210_index.json
|
||||
### 2.Add the toolchain directory to the PATH environment variable after installation.
|
||||
>C:\Users\\**(username)**\AppData\Local\Arduino15\packages\Kenduino\tools\riscv64-unknown-elf-gcc\8.2.0\bin
|
||||
### 3.Install [.Net core runtime](https://download.visualstudio.microsoft.com/download/pr/3f05ee2d-5372-43d6-9562-be86632a53d4/1361281426efa7ff206289adb0411f55/dotnet-runtime-3.0.0-preview3-27503-5-win-x64.exe)
|
||||
### 4.Board selects Sipeed M1 Board & Programmer to choose k-flash.
|
||||
### 5.Connect the development board and then choose the serial port.
|
||||
### 6.Now you can write the Arduino code and upload it to the k210 board.
|
||||
----
|
||||
## Ubuntu
|
||||
### 1.Add the following address to the **Preferences** and open the **Boards Manager** to download the development kit.
|
||||
>https://bigbits.oss-cn-qingdao.aliyuncs.com/Arduino_for_k210/package_k210_index.json
|
||||
### 2.Enter the following command in the terminal to solve the problem of usb serial port access rights.
|
||||
>sudo usermode -a -G dialout **(username)**
|
||||
### 3.Install pyserial
|
||||
>pip3 install pyserial
|
||||
### 4.Board selects Sipeed M1 Board & Programmer to choose k-flash.
|
||||
### 5.Connect the development board and then choose the serial port.
|
||||
### 6.Now you can write the Arduino code and upload it to the k210 board.
|
||||
----
|
||||
Maixduino
|
||||
========
|
||||
|
||||
Arduino core for Maix Board (K210)
|
||||
|
||||
|
||||
## Docs
|
||||
|
||||
Docs: [maixduino.sipeed.com](https://maixduino.sipeed.com/)
|
||||
|
||||
## Install
|
||||
|
||||
Refer install doc: [Install](https://maixduino.sipeed.com/en/get_started/install.html)
|
||||
|
||||
|
||||
## Other SDK
|
||||
|
||||
If you want to code by scripts, refer to our [MaixPy](https://maixpy.sipeed.com)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -84,14 +84,17 @@ recipe.objcopy.hex.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf
|
||||
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -B "{build.path}/{build.project_name}.elf"
|
||||
recipe.size.regex=\s*[0-9]+\s+[0-9]+\s+[0-9]+\s+([0-9]+).*
|
||||
|
||||
## Save hex
|
||||
recipe.output.tmp_file={build.project_name}.bin
|
||||
recipe.output.save_file={build.project_name}.{build.variant}.bin
|
||||
|
||||
# Uploader tools
|
||||
# -------------------
|
||||
|
||||
tools.kflash.path={runtime.tools.kflash.path}/
|
||||
tools.kflash.cmd=python3 {runtime.tools.kflash.path}/kflash.py
|
||||
tools.kflash.cmd.windows={runtime.tools.kflash.path}/k-flash
|
||||
tools.kflash.cmd.windows={runtime.tools.kflash.path}/kflash_py
|
||||
tools.kflash.program.pattern={cmd} -n -p {serial.port} -b {build.burn_baudrate} -B {build.burn_tool_firmware} {build.path}/{build.project_name}.bin
|
||||
tools.kflash.program.pattern.windows="{cmd}" -d {serial.port} -b {build.burn_baudrate} {build.path}/{build.project_name}.bin
|
||||
tools.kflash.program.pattern.windows="{cmd}" -n -p {serial.port} -b {build.burn_baudrate} -B {build.burn_tool_firmware} {build.path}/{build.project_name}.bin
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user