PolarFire® SoC mpfs-mmuart-interrupt 链接文件 更改为 mpfs-envm.ld 无法烧录
解决问题的办法,使用 External Tools 烧录程序到 eNVM
softconsole fpgenprog.exe 路径错误 导致 无法烧录 eNVM 程序 - 所长 - 博客园
elf 解析信息
riscv64-unknown-elf-size --format=sysv --totals --radix=16 "mpfs-mmuart-interrupt.elf"
mpfs-mmuart-interrupt.elf :
section size addr
.text_init 0x1660 0x20220100
.text 0x10030 0x20221760
.l2_scratchpad 0x0 0xa000000
.ram_code 0x6c 0x1001c00
.ddr_code 0x0 0x80000000
.sdata 0x30 0x8000000
.data 0xf00 0x8000030
.sbss 0xa0 0x8000f30
.bss 0x1e70 0x8000fd0
.heap 0x2000 0x8002e40
.stack 0xa000 0x8005000
.app_hart_common 0x1000 0x800f000
报错 :
Error in final launch sequence
Failed to execute MI command:
load C:\\Users\\zydz\\Desktop\\PolarFire\\mpfs250t_softconsole\\mpfs-mmuart-interrupt\\LIM-Debug-IcicleKit\\mpfs-mmuart-interrupt.elf
Error message from debugger back end:
Load failed
Failed to execute MI command:
load C:\\Users\\zydz\\Desktop\\PolarFire\\mpfs250t_softconsole\\mpfs-mmuart-interrupt\\LIM-Debug-IcicleKit\\mpfs-mmuart-interrupt.elf
Error message from debugger back end:
Load failed
Load failed

OpenOCD 日志
xPack OpenOCD (Microchip SoftConsole build), x86_64 Open On-Chip Debugger 0.10.0+dev-00859-g95a8cd9b5-dirty (2020-10-21-21:19) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html MPFS Info : only one transport option; autoselect 'jtag' Info : Hardware thread awareness created do_board_reset_init Info : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections Info : Embedded FlashPro6 (revision B) found (USB_ID=1514:200b path=\\?\hid#vid_1514&pid_200b#6&127f650a&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}) Info : Embedded FlashPro6 (revision B) CM3 firmware version: F4.0 Info : clock speed 6000 kHz Info : JTAG tap: mpfs.cpu tap/device found: 0x1f81a1cf (mfg: 0x0e7 (GateField), part: 0xf81a, ver: 0x1) Warn : JTAG tap: mpfs.cpu UNEXPECTED: 0x1f81a1cf (mfg: 0x0e7 (GateField), part: 0xf81a, ver: 0x1) Error: JTAG tap: mpfs.cpu expected 1 of 15: 0x0f8581cf (mfg: 0x0e7 (GateField), part: 0xf858, ver: 0x0) Error: JTAG tap: mpfs.cpu expected 2 of 15: 0x0f8781cf (mfg: 0x0e7 (GateField), part: 0xf878, ver: 0x0) Error: JTAG tap: mpfs.cpu expected 3 of 15: 0x0f8771cf (mfg: 0x0e7 (GateField), part: 0xf877, ver: 0x0) Error: JTAG tap: mpfs.cpu expected 4 of 15: 0x0f8181cf (mfg: 0x0e7 (GateField), part: 0xf818, ver: 0x0) Error: JTAG tap: mpfs.cpu expected 5 of 15: 0x0f8381cf (mfg: 0x0e7 (GateField), part: 0xf838, ver: 0x0) Error: JTAG tap: mpfs.cpu expected 6 of 15: 0x0f83c1cf (mfg: 0x0e7 (GateField), part: 0xf83c, ver: 0x0) Error: JTAG tap: mpfs.cpu expected 7 of 15: 0x0f8191cf (mfg: 0x0e7 (GateField), part: 0xf819, ver: 0x0) Error: JTAG tap: mpfs.cpu expected 8 of 15: 0x0f8391cf (mfg: 0x0e7 (GateField), part: 0xf839, ver: 0x0) Error: JTAG tap: mpfs.cpu expected 9 of 15: 0x0f83d1cf (mfg: 0x0e7 (GateField), part: 0xf83d, ver: 0x0) Error: JTAG tap: mpfs.cpu expected 10 of 1: 0x0f81a1cf (mfg: 0x0e7 (GateField), part: 0xf81a, ver: 0x0) Error: JTAG tap: mpfs.cpu expected 11 of 1: 0x0f83a1cf (mfg: 0x0e7 (GateField), part: 0xf83a, ver: 0x0) Error: JTAG tap: mpfs.cpu expected 12 of 1: 0x0f83e1cf (mfg: 0x0e7 (GateField), part: 0xf83e, ver: 0x0) Error: JTAG tap: mpfs.cpu expected 13 of 1: 0x0f81b1cf (mfg: 0x0e7 (GateField), part: 0xf81b, ver: 0x0) Error: JTAG tap: mpfs.cpu expected 14 of 1: 0x0f83b1cf (mfg: 0x0e7 (GateField), part: 0xf83b, ver: 0x0) Error: JTAG tap: mpfs.cpu expected 15 of 1: 0x0f83f1cf (mfg: 0x0e7 (GateField), part: 0xf83f, ver: 0x0) Error: Trying to use configured scan chain anyway... Warn : Bypassing JTAG setup events due to errors Info : datacount=2 progbufsize=16 Info : Disabling abstract command reads from CSRs. Info : Core 0 could not be made part of halt group 1. Info : Examined RISC-V core; found 5 harts Info : hart 0: XLEN=64, misa=0x8000000000101105 Info : hart 1: currently disabled Info : hart 2: currently disabled Info : hart 3: currently disabled Info : hart 4: currently disabled Info : datacount=2 progbufsize=16 Info : Disabling abstract command reads from CSRs. Info : Core 1 could not be made part of halt group 1. Info : Examined RISC-V core; found 5 harts Info : hart 0: currently disabled Info : hart 1: XLEN=64, misa=0x800000000014112d Info : hart 2: currently disabled Info : hart 3: currently disabled Info : hart 4: currently disabled Info : datacount=2 progbufsize=16 Info : Disabling abstract command reads from CSRs. Info : Core 2 could not be made part of halt group 1. Info : Examined RISC-V core; found 5 harts Info : hart 0: currently disabled Info : hart 1: currently disabled Info : hart 2: XLEN=64, misa=0x800000000014112d Info : hart 3: currently disabled Info : hart 4: currently disabled Info : datacount=2 progbufsize=16 Info : Disabling abstract command reads from CSRs. Info : Core 3 could not be made part of halt group 1. Info : Examined RISC-V core; found 5 harts Info : hart 0: currently disabled Info : hart 1: currently disabled Info : hart 2: currently disabled Info : hart 3: XLEN=64, misa=0x800000000014112d Info : hart 4: currently disabled Info : datacount=2 progbufsize=16 Info : Disabling abstract command reads from CSRs. Info : Core 4 could not be made part of halt group 1. Info : Examined RISC-V core; found 5 harts Info : hart 0: currently disabled Info : hart 1: currently disabled Info : hart 2: currently disabled Info : hart 3: currently disabled Info : hart 4: XLEN=64, misa=0x800000000014112d Info : Listening on port 3333 for gdb connections Started by GNU MCU Eclipse Info : accepting 'gdb' connection on tcp/3333 Info : New GDB Connection: 1, Target mpfs.hart0_e51, state: halted Info : Disabling abstract command writes to CSRs. Info : Disabling abstract command writes to CSRs. Info : Disabling abstract command writes to CSRs. Info : Disabling abstract command writes to CSRs. Info : Disabling abstract command writes to CSRs. shutdown command invoked Info : Embedded FlashPro6 (revision B): closing the device
什么情况????
浙公网安备 33010602011771号