You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to -march changes of gcc version above v12, to use gcc version above v12, RV_ARCH in cmake/application.cmake of hpm_sdk should be changed from -march=rv32imac to -march=rv32imac_zicsr_zifencei.
Change set(RV_ARCH "rv32imac") to set(RV_ARCH "rv32imac_zicsr_zifencei").
For users which use some prebuilt toolchains, such as xpack riscv toolchain, also need to set the gcc triplet in cmake/toolchain.cmake file to help SDK find the correct toolchain.
-march
changes of gcc version above v12, to use gcc version above v12, RV_ARCH incmake/application.cmake
of hpm_sdk should be changed from-march=rv32imac
to-march=rv32imac_zicsr_zifencei
.open
cmake/application.cmake
and find:Change
set(RV_ARCH "rv32imac")
toset(RV_ARCH "rv32imac_zicsr_zifencei")
.cmake/toolchain.cmake
file to help SDK find the correct toolchain.open
cmake/toolchain.cmake
and find:And change
riscv32-unknown-elf
to your toolchain's triplet, for example, for xpack riscv toolchain, it'sriscv-none-elf
.The text was updated successfully, but these errors were encountered: