[bsp/hpm5300evk]: 修复readme中的描述问题 (#10187)

1.bsp中描述路径boards不存在,只有board,并且路径中会包含openocd,把openocd路径去掉
2. 运行openocd发现cmsis-dap.cfg异常,使用ft2232.cfg可以正常烧入,修改readme
3. 添加download.bat脚本,方便下载
This commit is contained in:
Supper Thomas 2025-04-13 15:29:39 +08:00 committed by GitHub
parent 4ff1cfce64
commit 5100d39def
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 3 additions and 2 deletions

View File

@ -71,14 +71,14 @@
- 通过如下命令完成下载: - 通过如下命令完成下载:
```console ```console
%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" %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"
``` ```
- 通过如下命令实现调试: - 通过如下命令实现调试:
- 通过 `OpenOCD` 来连接开发板: - 通过 `OpenOCD` 来连接开发板:
```console ```console
%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 %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
``` ```
- 通过 `GDB` 实现调试: - 通过 `GDB` 实现调试:
```console ```console

View File

@ -0,0 +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"