Skip to content

Commit 5100d39

Browse files
authored
[bsp/hpm5300evk]: 修复readme中的描述问题 (#10187)
1.bsp中描述路径boards不存在,只有board,并且路径中会包含openocd,把openocd路径去掉 2. 运行openocd发现cmsis-dap.cfg异常,使用ft2232.cfg可以正常烧入,修改readme 3. 添加download.bat脚本,方便下载
1 parent 4ff1cfc commit 5100d39

File tree

9 files changed

+3
-2
lines changed

9 files changed

+3
-2
lines changed

bsp/hpmicro/hpm5300evk/README_zh.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@
7171

7272
- 通过如下命令完成下载:
7373
```console
74-
%OPENOCD_HPMICRO%\openocd.exe -f boards\debug_scripts\probes\cmsis_dap.cfg -f boards\debug_scripts\soc\hpm5300.cfg -f boards\debug_scripts\boards\hpm5300evk.cfg -c "init; halt; flash write_image erase rtthread.elf; reset; shutdown"
74+
%OPENOCD_HPMICRO%\openocd.exe -f board\debug_scripts\probes\ft2232.cfg -f board\debug_scripts\soc\hpm5300.cfg -f board\debug_scripts\boards\hpm5300evk.cfg -c "init; halt; flash write_image erase rtthread.elf; reset; shutdown"
7575
```
7676

7777
- 通过如下命令实现调试:
7878

7979
- 通过 `OpenOCD` 来连接开发板:
8080
```console
81-
%OPENOCD_HPMICRO%\openocd.exe -f boards\debug_scripts\probes\ft2232.cfg -f boards\debug_scripts\soc\hpm5300.cfg -f boards\debug_scripts\boards\hpm5300evk.cfg
81+
%OPENOCD_HPMICRO%\openocd.exe -f board\debug_scripts\probes\ft2232.cfg -f board\debug_scripts\soc\hpm5300.cfg -f board\debug_scripts\boards\hpm5300evk.cfg
8282
```
8383
- 通过 `GDB` 实现调试:
8484
```console

bsp/hpmicro/hpm5300evk/download.bat

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
%OPENOCD_HPMICRO%\openocd.exe -f board\debug_scripts\probes\ft2232.cfg -f board\debug_scripts\soc\hpm5300.cfg -f board\debug_scripts\boards\hpm5300evk.cfg -c "init; halt; flash write_image erase rtthread.elf; reset; shutdown"

0 commit comments

Comments
 (0)