macos m1可以正常编译,但是烧录时报错
使用相同的makefile和.elf文件在linux上使用linux版本工具链可以成功烧录
makefile: OPENOCD_PATH ?= /Users/rubo/eclipse-workspace/MRS_Toolchain_MAC_V150/openocd_arm64/bin OPENOCD_FILE := /Users/rubo/eclipse-workspace/MRS_Toolchain_MAC_V150/openocd_arm64/bin/wch-riscv.cfg ELF_FILE := /Users/rubo/Downloads/NEFU_SeekLight.elf flash: $(OPENOCD_PATH)/openocd -f $(OPENOCD_FILE) -c init -c halt -c "flash erase_sector wch_riscv 0 last " -c "program $(ELF_FILE)" -c "verify_image $(ELF_FILE)" -c wlink_reset_resume -c exit test: $(OPENOCD_PATH)/openocd -f $(OPENOCD_FILE) -c init -c halt -c "flash erase_sector wch_riscv 0 last " -c exit
错误提示:
Open On-Chip Debugger 0.11.0+dev-02215-gcc0ecfb6d-dirty (2022-07-22-15:08) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : only one transport option; autoselect 'jtag' Ready for Remote Connections Info : WCH-Link-CH549 mod:RV version 2.5 Info : wlink_init ok Info : This adapter doesn't support configurable speed Info : JTAG tap: riscv.cpu tap/device found: 0x00000001 (mfg: 0x000 (), part: 0x0000, ver: 0x0) Warn : Bypassing JTAG setup events due to errors Info : [riscv.cpu.0] datacount=2 progbufsize=8 Info : Examined RISC-V core; found 1 harts Info : hart 0: XLEN=32, misa=0x40901125 [riscv.cpu.0] Target successfully examined. Info : starting gdb server for riscv.cpu.0 on 3333 Info : Listening on port 3333 for gdb connections Info : device id = 0x263e4ee1 Info : flash size = 256kbytes Info : ROM 192 kbytes RAM 128 kbytes erased sectors 0 through 255 on flash bank 0 in 0.159088s Info : JTAG tap: riscv.cpu tap/device found: 0x00000001 (mfg: 0x000 (), part: 0x0000, ver: 0x0) Warn : Bypassing JTAG setup events due to errors ** Programming Started ** make: *** [flash] Bus error: 10
热门产品 :
CH339: 7端口多功能USB HUB控制器芯片