ch32-hal icon indicating copy to clipboard operation
ch32-hal copied to clipboard

Fixed the issue with the incorrect instruction set architecture of the chip used in CH32V307.

Open Snow-in-Dublin opened this issue 2 months ago • 3 comments

According to the official manual, the instruction set architecture of QingkeV4 is RV32imac rather than RV32imfc(Is this a genuine instruction set architecture?), and when testing on the evaluation board, it must be modified to RV32imac to compile.

Snow-in-Dublin avatar Nov 14 '25 06:11 Snow-in-Dublin

See this commit: https://github.com/ch32-rs/ch32-hal/commit/14e500744ef4aef2a07d8592e2760be816e473fe

What is your build issue?

romainreignier avatar Nov 14 '25 07:11 romainreignier

I didn't encounter any compilation issues, I just felt that the instruction set wasn't quite right.

Snow-in-Dublin avatar Nov 14 '25 10:11 Snow-in-Dublin

@Snow-in-Dublin CH32V307 is Qingke V4F, which is RV32IMACF The original code looks right to me.

image image

Did you witness illegal instruction or other issues when using floating-point ?

chmousset avatar Nov 26 '25 09:11 chmousset

@chmousset My mistake, I misread it as QingkeV4C.

Snow-in-Dublin avatar Dec 02 '25 03:12 Snow-in-Dublin