提交 e765c36b 编写于 作者: 嵌入式AIoT's avatar 嵌入式AIoT

bsp/nuclei: Fix scons --run=upload command output message not match issue

Although the program elf is uploaded successfully, the upload message is
still "Remote communication error.“, but actually upload works.

After fix, it will be "[Inferior 1 (Remote target) detached]"

By the way, I also checked latest nuclei-sdk 0.3.0 release with latest
rt-thread source code
Signed-off-by: 嵌入式AIoT's avatarHuaqi Fang <578567190@qq.com>
上级 c9243304
# Nuclei RISC-V Processor Support Package # Nuclei RISC-V Processor Support Package
This directory provided support for [Nuclei RISC-V Processor](https://nucleisys.com/) based board, This directory provided support for [Nuclei RISC-V Processor](https://nucleisys.com/) based boards,
currently we mainly provided the following board support packages. currently we mainly provided the following board support packages.
| **BSP** | **Development Board Name** | | **BSP** | **Development Board Name** |
| :----------------------------------- | :-------------------------------------------------------------------------------------------------------------------------- | | :----------------------------------- | :--------------------------------------------------------------------------------------------------------- |
| [gd32vf103_rvstar](gd32vf103_rvstar) | [Nuclei RV-STAR Arduino Compatible Development Board](https://www.riscv-mcu.com/quickstart-quickstart-index-u-RV_STAR.html) | | [gd32vf103_rvstar](gd32vf103_rvstar) | [Nuclei RV-STAR Arduino Compatible Development Board](https://www.rvmcu.com/quickstart-doc-u-rvstar.html) |
| [hbird_eval](hbird_eval) | [Nuclei HummingBird FPGA Evaluation Development Board](https://nucleisys.com/developboard.php) | | [hbird_eval](hbird_eval) | [Nuclei HummingBird FPGA Evaluation Development Board](https://nucleisys.com/developboard.php#ddr200t) |
**If you want to learn more about Nuclei Processors, please click the following links:** **If you want to learn more about Nuclei Processors, please click the following links:**
...@@ -16,6 +16,6 @@ currently we mainly provided the following board support packages. ...@@ -16,6 +16,6 @@ currently we mainly provided the following board support packages.
* [RISC-V MCU Open Source Software Organization in Github](https://github.com/riscv-mcu/) * [RISC-V MCU Open Source Software Organization in Github](https://github.com/riscv-mcu/)
* [RISC-V MCU Open Source Software Organization in Gitee](https://gitee.com/riscv-mcu/) * [RISC-V MCU Open Source Software Organization in Gitee](https://gitee.com/riscv-mcu/)
* [Professional Nuclei Processor Development Boards](https://nucleisys.com/developboard.php) * [Professional Nuclei Processor Development Boards](https://nucleisys.com/developboard.php)
* [Comprehensive Documents and Development Tools](https://nucleisys.com/download.php) * [Comprehensive Documents and Development Tools](https://nucleisys.com/download.php#tools)
* [Active RISC-V IP and MCU Community](https://www.rvmcu.com/) * [Active RISC-V IP and MCU Community](https://www.rvmcu.com/)
* [Professional University Program](https://nucleisys.com/campus.php) * [Professional University Program](https://nucleisys.com/campus.php)
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
**RVSTAR开发板** 是由[芯来科技Nuclei](https://nucleisys.com/)公司推出的基于采用芯来科技RISC-V架构处理器芯片的GD32VF103的开发板。 **RVSTAR开发板** 是由[芯来科技Nuclei](https://nucleisys.com/)公司推出的基于采用芯来科技RISC-V架构处理器芯片的GD32VF103的开发板。
更多关于 **RVSTAR开发板** 开发板的详细资料请参见 [RVSTAR开发板快速入门](https://www.rvmcu.com/quickstart-quickstart-index-u-RV_STAR.html) 更多关于 **RVSTAR开发板** 开发板的详细资料请参见 [RVSTAR开发板快速入门](https://www.rvmcu.com/quickstart-doc-u-rvstar.html)
### 板载资源 ### 板载资源
...@@ -103,7 +103,7 @@ A debugging session is active. ...@@ -103,7 +103,7 @@ A debugging session is active.
Inferior 1 [Remote target] will be detached. Inferior 1 [Remote target] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal] Quit anyway? (y or n) [answered Y; input not from terminal]
Remote communication error. Target disconnected.: Success. [Inferior 1 (Remote target) detached]
~~~ ~~~
下载程序之后, 连接串口(115200-N-8-1), 可以看到 RT-Thread 的输出信息: 下载程序之后, 连接串口(115200-N-8-1), 可以看到 RT-Thread 的输出信息:
......
...@@ -75,7 +75,7 @@ if run_target in SUPPORT_RUN_TARGETS: ...@@ -75,7 +75,7 @@ if run_target in SUPPORT_RUN_TARGETS:
upload_cmd = '{} {} -ex "set remotetimeout 240" \ upload_cmd = '{} {} -ex "set remotetimeout 240" \
-ex "target remote | openocd --pipe -f {}" \ -ex "target remote | openocd --pipe -f {}" \
--batch -ex "monitor halt" -ex "monitor flash protect 0 0 last off" -ex "load" \ --batch -ex "monitor halt" -ex "monitor flash protect 0 0 last off" -ex "load" \
-ex "monitor resume" -ex "monitor shutdown" -ex "quit"'.format(GDB, TARGET, openocd_cfg) -ex "monitor resume" -ex "quit"'.format(GDB, TARGET, openocd_cfg)
print("Upload application {} using openocd and gdb".format(TARGET)) print("Upload application {} using openocd and gdb".format(TARGET))
print(upload_cmd) print(upload_cmd)
os.system(upload_cmd) os.system(upload_cmd)
......
# 芯来科技蜂鸟FPGA评估板 # # 芯来科技蜂鸟FPGA评估板
## 简介 ## 简介
**蜂鸟FPGA评估板** 是由芯来科技公司推出的用于测试评估芯来RISC-V内核处理器的FPGA评估板。 **蜂鸟FPGA系列评估板** 是由芯来科技公司推出的用于一系列测试评估芯来RISC-V内核处理器的FPGA评估板。
更多关于 **蜂鸟FPGA评估板** 开发板的详细资料请参见 [蜂鸟FPGA评估板](https://nucleisys.com/developboard.php) 更多关于 **蜂鸟FPGA评估板** 开发板的详细资料请参见:
* [Nuclei DDR200T开发板](https://nucleisys.com/developboard.php#ddr200t)
* [Nuclei MCU200T开发板](https://nucleisys.com/developboard.php#mcu200t)
* [蜂鸟开发板](https://nucleisys.com/developboard.php#hbird100t)
### 板载资源 ### 板载资源
...@@ -57,7 +61,9 @@ export PATH=~/Software/Nuclei/gcc/bin:~/Software/Nuclei/openocd/bin:$PATH ...@@ -57,7 +61,9 @@ export PATH=~/Software/Nuclei/gcc/bin:~/Software/Nuclei/openocd/bin:$PATH
## 烧写及执行 ## 烧写及执行
### [驱动设置](https://nucleisys.com/developboard.php) ### 驱动设置
驱动安装设置,请参考[Nuclei FPGA开发板介绍](https://nucleisys.com/upload/files/fpga/doc/Nuclei_FPGA_DebugKit_Intro_202012.pdf)
### 编译程序 ### 编译程序
...@@ -110,7 +116,7 @@ A debugging session is active. ...@@ -110,7 +116,7 @@ A debugging session is active.
Inferior 1 [Remote target] will be detached. Inferior 1 [Remote target] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal] Quit anyway? (y or n) [answered Y; input not from terminal]
Remote communication error. Target disconnected.: Success. [Inferior 1 (Remote target) detached]
~~~ ~~~
下载程序之后, 连接**串口(57600-N-8-1)**, 可以看到 RT-Thread 的输出信息: 下载程序之后, 连接**串口(57600-N-8-1)**, 可以看到 RT-Thread 的输出信息:
......
...@@ -75,7 +75,7 @@ if run_target in SUPPORT_RUN_TARGETS: ...@@ -75,7 +75,7 @@ if run_target in SUPPORT_RUN_TARGETS:
upload_cmd = '{} {} -ex "set remotetimeout 240" \ upload_cmd = '{} {} -ex "set remotetimeout 240" \
-ex "target remote | openocd --pipe -f {}" \ -ex "target remote | openocd --pipe -f {}" \
--batch -ex "monitor halt" -ex "monitor flash protect 0 0 last off" -ex "load" \ --batch -ex "monitor halt" -ex "monitor flash protect 0 0 last off" -ex "load" \
-ex "monitor resume" -ex "monitor shutdown" -ex "quit"'.format(GDB, TARGET, openocd_cfg) -ex "monitor resume" -ex "quit"'.format(GDB, TARGET, openocd_cfg)
print("Upload application {} using openocd and gdb".format(TARGET)) print("Upload application {} using openocd and gdb".format(TARGET))
print(upload_cmd) print(upload_cmd)
os.system(upload_cmd) os.system(upload_cmd)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册