官网下载的例程编译错误

C:\Users\dainb\AppData\Local\Temp\ccodvwDj.s: Assembler messages:

C:\Users\dainb\AppData\Local\Temp\ccodvwDj.s: Warning: end of file in comment; newline inserted

C:\Users\dainb\AppData\Local\Temp\ccodvwDj.s:1: Error: unrecognized opcode `b'

C:\Users\dainb\AppData\Local\Temp\ccWmD2gl.s: Assembler messages:

C:\Users\dainb\AppData\Local\Temp\ccWmD2gl.s: Warning: end of file in string; '"' inserted

C:\Users\dainb\AppData\Local\Temp\ccWmD2gl.s:1: Error: unrecognized opcode `b'

C:\Users\dainb\AppData\Local\Temp\ccWmD2gl.s:2: Error: unrecognized opcode `焾0zu墊5?_茬?寲蹨rq馏CC?c}?Q}q庀5琖迗'

C:\Users\dainb\AppData\Local\Temp\ccWmD2gl.s:2: Error: unrecognized opcode `轶?t??.eO?57鬤舫?>笱?帓Hr>紲3櫘5鍇?馆?3?q'

C:\Users\dainb\AppData\Local\Temp\ccWmD2gl.s:3: Error: junk at end of line, first unrecognized character valued 0x15

C:\Users\dainb\AppData\Local\Temp\ccWmD2gl.s:3: Error: unrecognized opcode `n樊?2?蜞p凥滜衷o休勛芙燱 瘫描tE南熕獆玫mD氈H^q韀? 槰胇鉆孎L?埬旱??鐈? y)^?"タ歔镽?紑傋滬咶@k脒?0 胰G敒$}J?攷gi耥?!w?.@忇1︶7?湑碰Тhk頭;F瘀gl畘}?2鞇>喹???f

6?+讟#暭6?Fx?)q%蒹"'

C:\Users\dainb\AppData\Local\Temp\ccApc4jk.s: Assembler messages:

C:\Users\dainb\AppData\Local\Temp\ccApc4jk.s: Warning: end of file in comment; newline inserted

C:\Users\dainb\AppData\Local\Temp\ccApc4jk.s:1: Error: unrecognized opcode `b'

C:\Users\dainb\AppData\Local\Temp\ccApc4jk.s:2: Error: unrecognized opcode `痺瀎毩{艰?Y??lE6L蜛i冾r雁O? a?7pw鄟'

C:\Users\dainb\AppData\Local\Temp\ccAdMEbn.s: Assembler messages:

C:\Users\dainb\AppData\Local\Temp\ccAdMEbn.s: Warning: end of file in comment; newline inserted

C:\Users\dainb\AppData\Local\Temp\ccAdMEbn.s:1: Error: unrecognized opcode `b'

make: *** [User/subdir.mk:25: User/main.o] Error 1

make: *** Waiting for unfinished jobs....

C:\Users\dainb\AppData\Local\Temp\ccA57GEm.s: Assembler messages:

C:\Users\dainb\AppData\Local\Temp\ccA57GEm.s: Warning: end of file in comment; newline inserted

C:\Users\dainb\AppData\Local\Temp\ccA57GEm.s:1: Error: unrecognized opcode `b'

C:\Users\dainb\AppData\Local\Temp\ccA57GEm.s:2: Error: unrecognized opcode `z誐fǜ噆??=矀卟蔹^? 瓰?9穴齄鷆o.漸汝'

C:\Users\dainb\AppData\Local\Temp\ccuqyh1n.s: Assembler messages:

C:\Users\dainb\AppData\Local\Temp\ccuqyh1n.s: Warning: end of file not at end of a line; newline inserted

C:\Users\dainb\AppData\Local\Temp\ccuqyh1n.s:1: Error: unrecognized opcode `b'

C:\Users\dainb\AppData\Local\Temp\ccuqyh1n.s:2: Error: unrecognized opcode `z誐fǜ噆??=矀卟蔹^? 瓰?9穴齄鷆m.?+n?e矈<\u墊5?_茬?寲邷rq馏CC?c}?Q}q忝5琖迗'

C:\Users\dainb\AppData\Local\Temp\ccuqyh1n.s:2: Error: unrecognized opcode `轲鹴??.eO?&9鬥??.笱?瀿Hr>紲3櫘5鍇?馆?7? ?6庋怯'

make: *** [Startup/subdir.mk:19: Startup/startup_ch32v10x_3v3.o] Error 1

make: *** [Peripheral/src/subdir.mk:82: Peripheral/src/ch32v10x_crc.o] Error 1

make: *** [User/subdir.mk:25: User/ch32v10x_it.o] Error 1

C:\Users\dainb\AppData\Local\Temp\ccUNOEbn.s: Assembler messages:

C:\Users\dainb\AppData\Local\Temp\ccUNOEbn.s: Warning: end of file in comment; newline inserted

C:\Users\dainb\AppData\Local\Temp\ccUNOEbn.s:1: Error: unrecognized opcode `b'

make: *** [User/subdir.mk:25: User/system_ch32v10x.o] Error 1

make: *** [Peripheral/src/subdir.mk:85: Peripheral/src/ch32v10x_dbgmcu.o] Error 1

make: *** [Peripheral/src/subdir.mk:79: Peripheral/src/ch32v10x_bkp.o] Error 1

C:\Users\dainb\AppData\Local\Temp\cc0eTaCm.s: Assembler messages:

C:\Users\dainb\AppData\Local\Temp\cc0eTaCm.s: Warning: end of file in comment; newline inserted

C:\Users\dainb\AppData\Local\Temp\cc0eTaCm.s:1: Error: unrecognized opcode `b'

make: *** [Peripheral/src/subdir.mk:88: Peripheral/src/ch32v10x_dma.o] Error 1

C:\Users\dainb\AppData\Local\Temp\ccC2S3Zo.s: Assembler messages:

C:\Users\dainb\AppData\Local\Temp\ccC2S3Zo.s: Warning: end of file in comment; newline inserted

C:\Users\dainb\AppData\Local\Temp\ccC2S3Zo.s:1: Error: unrecognized opcode `b'

make: *** [Peripheral/src/subdir.mk:91: Peripheral/src/ch32v10x_exti.o] Error 1

C:\Users\dainb\AppData\Local\Temp\ccyGHKRj.s: Assembler messages:

C:\Users\dainb\AppData\Local\Temp\ccyGHKRj.s: Warning: end of file in comment; newline inserted

C:\Users\dainb\AppData\Local\Temp\ccyGHKRj.s:1: Error: unrecognized opcode `b'

C:\Users\dainb\AppData\Local\Temp\ccO0MNNs.s: Assembler messages:

C:\Users\dainb\AppData\Local\Temp\ccO0MNNs.s: Warning: end of file in comment; newline inserted

C:\Users\dainb\AppData\Local\Temp\ccO0MNNs.s:1: Error: unrecognized opcode `b'

make: *** [Peripheral/src/subdir.mk:76: Peripheral/src/ch32v10x_adc.o] Error 1

make: *** [Peripheral/src/subdir.mk:97: Peripheral/src/ch32v10x_gpio.o] Error 1

C:\Users\dainb\AppData\Local\Temp\ccQZ2zdp.s: Assembler messages:

C:\Users\dainb\AppData\Local\Temp\ccQZ2zdp.s: Warning: end of file in comment; newline inserted

C:\Users\dainb\AppData\Local\Temp\ccQZ2zdp.s:1: Error: unrecognized opcode `b'

make: *** [Peripheral/src/subdir.mk:94: Peripheral/src/ch32v10x_flash.o] Error 1


16:57:32 Build Failed. 33 errors, 1 warnings. (took 1s.295ms)


您好,看报错是不识别的指令,您这边是使用什么环境或者软件编译的 


icon_jpg.gifQQ截图20230731094112.png

就是官网下载的MounRiver Studio 安装后直接打开官网例程编译的


您好,可以尝试下删除C:\MRS_DATA\workspace下的.metadata文件夹再重新编译,如果还是一样报错的话可以

将本机的环境变量截图发至邮箱yangy@wch.cn,查看环境变量方法,右键此电脑,属性,高级系统设置,环境变量。


只有登录才能回复,可以选择微信账号登录