6 Commits

Author SHA1 Message Date
Neucrack
57abaf8159 add bin export 2019-04-04 11:49:32 +08:00
Neucrack
a9749d24ce remove kflash color syntax for linux... 2019-04-03 16:59:14 +08:00
Neucrack
c5023445b4 add install doc link 2019-04-03 15:20:50 +08:00
Neucrack
afc08d3dd1 replace k-flash with kflash.py on windows 2019-04-03 14:51:07 +08:00
Neucrack
38671731ce update readme 2019-04-02 18:55:12 +08:00
Neucrack
806c7dc762 add license 2019-04-02 18:53:06 +08:00
3 changed files with 55 additions and 45 deletions

28
LICENSE.md Normal file
View 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.
```

View File

@@ -1,43 +1,22 @@
# Arduino Core for Kendryte K210 Maixduino
## Windows ========
### 1.首选项添加下列地址 然后打开开发版管理器下载开发包
>https://bigbits.oss-cn-qingdao.aliyuncs.com/Arduino_for_k210/package_k210_index.json Arduino core for Maix Board (K210)
### 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) ## Docs
### 4.开发板选择Sipeed M1 Board 编程器选 k-flash
### 5.连接开发板选对应的串口号 Docs: [maixduino.sipeed.com](https://maixduino.sipeed.com/)
### 6.编写程序 编译 上传 完成
---- ## Install
## Ubuntu
### 1.首选项添加下列地址 然后打开开发版管理器下载开发包 Refer install doc: [Install](https://maixduino.sipeed.com/en/get_started/install.html)
>https://bigbits.oss-cn-qingdao.aliyuncs.com/Arduino_for_k210/package_k210_index.json
### 2.需要解决usb串口访问权限
>sudo usermode -a -G dialout **(username)** ## Other SDK
### 3.安装pyserial
>pip3 install pyserial If you want to code by scripts, refer to our [MaixPy](https://maixpy.sipeed.com)
### 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.
----

View File

@@ -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.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]+).* 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 # Uploader tools
# ------------------- # -------------------
tools.kflash.path={runtime.tools.kflash.path}/ tools.kflash.path={runtime.tools.kflash.path}/
tools.kflash.cmd=python3 {runtime.tools.kflash.path}/kflash.py 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={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