RISC-V MCU中文社区

【求助】 求助:流片后,无法通过openocd烧录程序

发表于 开源蜂鸟E203 2022-10-11 16:17:03
1
729
3

在流片后,再使用之前的编译环境对芯片程序进行烧录时,出现错误,错误代码如下:

./prebuilt_tools/openocd/bin/openocd -f bsp/core/env/openocd_hbird_ilm.cfg & \

/home/vcs/riscv/n100-sdk-master/prebuilt_tools/riscv-nuclei-elf-gcc/bin/riscv-nuclei-elf-gdb software/hello_world/hello_world --batch -ex "set remotetimeout 240" -ex "target extended-remote localhost:3333" -ex "monitor reset halt" -ex "monitor flash protect 0 0 last off" -ex "load" -ex "monitor resume" -ex "monitor shutdown" -ex "quit" && \

echo "Successfully uploaded 'hello_world' "

Open On-Chip Debugger 0.11.0+dev-01897-gc8fc2a168 (2022-04-01-08:40)

Licensed under GNU GPL v2

For bug reports, read

 http://openocd.org/doc/doxygen/bugs.html

Info : auto-selecting first available session transport "jtag". To override use 'transport select '.

Info : Using libusb driver

Info : clock speed 100 kHz

Info : JTAG tap: riscv.cpu tap/device found: 0x11010a6d (mfg: 0x536 (Nuclei System Technology Co Ltd), part: 0x1010, ver: 0x1)

Info : datacount=4 progbufsize=2

Error: unable to halt hart 0

Error: dmcontrol=0x00000001

Error: dmstatus =0x00400ca2

Error: Fatal: Hart 0 failed to halt during examine()

Warn : target riscv.cpu examination failed

Info : starting gdb server for riscv.cpu on 3333

Info : Listening on port 3333 for gdb connections

Error: Target not examined yet

localhost:3333: 连接超时.

"monitor" command not supported by this target.

"monitor" command not supported by this target.

You can't do that when your target is `exec'

"monitor" command not supported by this target.

"monitor" command not supported by this target.

Successfully uploaded 'hello_world'



主要问题应该是出现在

Error: unable to halt hart 0

Error: dmcontrol=0x00000001

Error: dmstatus =0x00400ca2

但是目前不知道该怎么解决。

所以想问问,是不是要修改openocd的.cfg文件,还是说是我们流片前的设计是不是存在问题。

喜欢3
用户评论 (1)
清影无奈

清影无奈 未通过实名认证

懒的都不写签名

积分
问答
粉丝
关注
  • RV-STAR 开发板
  • RISC-V处理器设计系列课程
  • 培养RISC-V大学土壤 共建RISC-V教育生态
RV-STAR 开发板