CherryUSB / cherryusb_wch

CherryUSB demo for WCH
19 stars 9 forks source link

Compiling RISC-V toolchain #7

Closed Xelus22 closed 1 year ago

Xelus22 commented 1 year ago

Hi i am having an issue trying to compile HID_MOUSE example

image

I am using this. https://github.com/xpack-dev-tools/riscv-none-embed-gcc-xpack

I have also changed the toolchain prefix to image

Xelus22 commented 1 year ago

Fixed by using the old compiler. This is a newer version of the riscv compiler. Anyone in future use the riscv-none-embed though it is deprecated.

Xelus22 commented 1 year ago

image

Cannot compile due to these issues

I am using this toolchain https://github.com/xpack-dev-tools/riscv-none-embed-gcc-xpack

sakumisu commented 1 year ago

No, you must use toolchain that wch provided.

Xelus22 commented 1 year ago

Thanks @sakumisu , now the issue is sleep_ms is undefined reference?

image

sakumisu commented 1 year ago

Just delete.