🔍 搜索帖子 / 资讯 / 芯片型号…
论坛/开源蜂鸟E203/[求助] MCU200T开发板下载程序时openocd报错
[求助] MCU200T开发板下载程序时openocd报错
开源蜂鸟E203 作者 海风 发布于 2023-12-01 03:06(1044 天前) 6370 浏览

操作系统版本:ubuntu 20.04 Desktop
IDE版本:NucleiStudio IDE 202310 Lin64
开发板型号:MCU-200T

我使用vivado将E203的mcs文件(确认在编译时指定了MCU200T)烧录到FPGA后。使用NucleiStudio将helloworld示例下载到板卡,有如下报错

Info : Using libusb driver
Info : clock speed 1000 kHz
Info : JTAG tap: riscv.cpu tap/device found: 0x1e200a6d (mfg: 0x536 (Nuclei System Technology Co Ltd), part: 0xe200, ver: 0x1)
Info : [riscv.cpu] Found 0 triggers
halted at 0x200000b2 due to debug interrupt
Info : Examined RISCV core; XLEN=32, misa=0x40001105
[riscv.cpu] Target successfully examined.
Info : starting gdb server for riscv.cpu on 3333
Info : Listening on port 3333 for gdb connections
Error: Device ID 0x1e200a6d is not known as FESPI capable
Error: auto_probe failed

hello world程序的编译没有报错,编译选项如下:

在论坛中没有搜索到相同的问题,刚开始接触硬件开发,请各位大佬帮忙解答!
非常感谢

全部回复 7
s
switch1004 天前 · 1 楼
回复 海风:

非常感谢,关于“  Device ID 0x1e200a6d is not known as FESPI capable”的报错目前解决了,但是仍旧无法顺利下载程序,后续又出现新的报错如下:


```

Info : Using libusb driver

Info : clock speed 1000 kHz

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

Info : [riscv.cpu] Found 0 triggers

halted at 0x20000240 due to debug interrupt

Info : Examined RISCV core; XLEN=32, misa=0x40001105

[riscv.cpu] Target successfully examined.

Info : starting gdb server for riscv.cpu on 3333

Info : Listening on port 3333 for gdb connections

Info : Valid NUSPI on device Nuclei SoC SPI Flash at address 0x20000000 with spictrl regbase at 0x10014000

Info : Nuclei SPI controller version 0x00000000

Info : Found flash device 'gd gd25q32c' (ID 0x001640c8)

cleared protection for sectors 0 through 63 on flash bank 0


Started by GNU MCU Eclipse

Info : Listening on port 6666 for tcl connections

Info : Listening on port 4444 for telnet connections

Info : accepting 'gdb' connection on tcp/3333

Warn : Prefer GDB command "target extended-remote :3333" instead of "target remote :3333"

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

halted at 0x20000240 due to debug interrupt

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

halted at 0x20000240 due to debug interrupt

Error: TODO: debug_execution is true

Error: Failed to execute algorithm at 0x80000000: -4

Error: error writing to flash at address 0x20000000 at offset 0x00000000

halted at 0x20000240 due to debug interrupt

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

halted at 0x20000240 due to debug interrupt

halted at 0x20000240 due to debug interrupt

Info : dropped 'gdb' connection

shutdown command invoked

```

你好,问一下,你有解决这个问题吗,我现在也遇到了相同的问题

海
海风1039 天前 · 2 楼
回复 admin:

因为openocd变更,您需要修改一下hbird_sdk/SoC/hbirdv2/Board/mcu200t/openocd_hbirdv2.cfg中25行,将fespi改成nuspi


非常感谢,关于“  Device ID 0x1e200a6d is not known as FESPI capable”的报错目前解决了,但是仍旧无法顺利下载程序,后续又出现新的报错如下:


```

Info : Using libusb driver

Info : clock speed 1000 kHz

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

Info : [riscv.cpu] Found 0 triggers

halted at 0x20000240 due to debug interrupt

Info : Examined RISCV core; XLEN=32, misa=0x40001105

[riscv.cpu] Target successfully examined.

Info : starting gdb server for riscv.cpu on 3333

Info : Listening on port 3333 for gdb connections

Info : Valid NUSPI on device Nuclei SoC SPI Flash at address 0x20000000 with spictrl regbase at 0x10014000

Info : Nuclei SPI controller version 0x00000000

Info : Found flash device 'gd gd25q32c' (ID 0x001640c8)

cleared protection for sectors 0 through 63 on flash bank 0


Started by GNU MCU Eclipse

Info : Listening on port 6666 for tcl connections

Info : Listening on port 4444 for telnet connections

Info : accepting 'gdb' connection on tcp/3333

Warn : Prefer GDB command "target extended-remote :3333" instead of "target remote :3333"

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

halted at 0x20000240 due to debug interrupt

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

halted at 0x20000240 due to debug interrupt

Error: TODO: debug_execution is true

Error: Failed to execute algorithm at 0x80000000: -4

Error: error writing to flash at address 0x20000000 at offset 0x00000000

halted at 0x20000240 due to debug interrupt

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

halted at 0x20000240 due to debug interrupt

halted at 0x20000240 due to debug interrupt

Info : dropped 'gdb' connection

shutdown command invoked

```

a
admin1039 天前 · 3 楼

因为openocd变更,您需要修改一下hbird_sdk/SoC/hbirdv2/Board/mcu200t/openocd_hbirdv2.cfg中25行,将fespi改成nuspi


d
dongyong1040 天前 · 4 楼

换到windows下试试,我没遇到过  Device ID 0x1e200a6d is not known as FESPI capable



The error message "Device ID 0x1e200a6d is not known as FESPI capable" suggests that the device with the given ID is not recognized as having FESPI (Fast External Serial Peripheral Interface) capability. FESPI is a high-speed interface for connecting external flash memory to microcontrollers or other embedded systems.  

海
海风1043 天前 · 5 楼

在ubuntu中启动NucleiStudio有如下报错,是否有影响

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Managed Build system manifest file error: Duplicate identifier ilg.gnumcueclipse.managedbuild.cross.riscv.config.elf.debug for element type Configuration.

Managed Build system manifest file error: Duplicate identifier ilg.gnumcueclipse.managedbuild.cross.riscv.toolchain.elf.debug for element type ToolChain.

Managed Build system manifest file error: Duplicate identifier ilg.gnumcueclipse.managedbuild.cross.riscv.targetPlatform for element type TargetPlatform.

Managed Build system manifest file error: Duplicate identifier ilg.gnumcueclipse.managedbuild.cross.riscv.config.elf.release for element type Configuration.

Managed Build system manifest file error: Duplicate identifier ilg.gnumcueclipse.managedbuild.cross.riscv.toolchain.elf.release for element type ToolChain.

Managed Build system manifest file error: Duplicate identifier ilg.gnumcueclipse.managedbuild.cross.riscv.targetPlatform for element type TargetPlatform.

Managed Build system manifest file error: Duplicate identifier ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug for element type Configuration.

Managed Build system manifest file error: Duplicate identifier ilg.gnuarmeclipse.managedbuild.cross.toolchain.elf.debug for element type ToolChain.

Managed Build system manifest file error: Duplicate identifier ilg.gnuarmeclipse.managedbuild.cross.config.elf.release for element type Configuration.

Managed Build system manifest file error: Duplicate identifier ilg.gnuarmeclipse.managedbuild.cross.toolchain.elf.release for element type ToolChain.

Toolchain 'RISC-V Nuclei GCC' has custom ID '393615029' instead of '3901352267'
Toolchain 'xPack GNU RISC-V Embedded GCC' has custom ID '2273142913' instead of '2273142912'

(NucleiStudio:4388): Gtk-CRITICAL **: 00:46:45.368: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
Update Check...
Tool custom variable initialization...

海
海风1043 天前 · 6 楼
回复 小白two:

之前有出现过类似的情况,在vivado烧写完后,断开烧写器连接,再连接蜂鸟烧写器下程序。试试能不能解决你的问题。

我试过。特意在vivodo烧写完以后,断开下载器。然后链接蜂鸟的调试器下程序,但还是这个报错。

小
小白two1043 天前 · 7 楼

之前有出现过类似的情况,在vivado烧写完后,断开烧写器连接,再连接蜂鸟烧写器下程序。试试能不能解决你的问题。

💡 请 登录 后参与讨论(微信扫码即登录/注册)