-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request for RISCV LLVM compiler option in SDK #2228
Milestone
Comments
So,
and
|
For Pico 2 W, the problematic line is:
but I think solution is there #1922:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
because... why not :D But messing with scripts and hardcoding, and deleting stuff, managed to compile some program that works. There was some warnings and SDK required some changes. Stable release and top-of-tree both has RISCV LLVM option. Latter one has newer 19.0.0 (and it's GCC/LLVM combo), and it works with
-march=rv32ima_zicsr_zifencei_zba_zbb_zbs_zbkb_zca_zcb_zcmp
, that is required after changing instruction:pico-sdk/src/rp2_common/hardware_irq/irq_handler_chain.S
Line 75 in 95ea6ac
and
pico-sdk/src/rp2_common/hardware_irq/irq_handler_chain.S
Line 91 in 95ea6ac
to its commented out form. Stable (16 something) was not complying with
rv32imac_zicsr_zifencei_zba_zbb_zbs_zbkb
. They both are shipped withnewlib
soset(PICO_CLIB newlib)
. Pico 2 W has similar instruction incompatibility somewhere incyw43driver
I believe, but there was not comment for that :D So deleting it, and it compiled spiting outuf2
file. I don't have Pico 2 W to test it, but I bet it might lack one instruction. I didn't dig deep enough for the replacement. Anyway, compiler is available (for Linux and macOS only in a binary form) and at the first glance it works.The text was updated successfully, but these errors were encountered: