-
Notifications
You must be signed in to change notification settings - Fork 95
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
Pico riscv32? #706
Comments
I have added this target. |
Tested (with issues) My first attempt is to simply try updating my already installed pico-cross version
OK, now let's try a fresh install in a new directory just in case something was supposed to be added to the old install Failure - as above images Log file (only includes risvv-32 for some reason) Ahh - there's another longer log in install dir - have that too just in case (but the above is prob the issue) |
Well. The log-file tells you all you need. This line:
When compiling for embedded, you need to define a subarch. |
?
I just build my own toolchain, binutils only. |
This will probably be useful then |
Please explain why this is (only) valid for Windows ? |
It'll build on anything Not tried Mac (although I do have a very old one) but definitely works on Windows + Linux x64 and I've see it running on a Pi as well My main interest was Win but also want to try Linux (+Mac + Pi eventually) That specific compiler is more bleeding-edge than the stock ones mentiooned above |
The imac refers to instruction sets supported by the risc-v target: i = integer, m = multiply/divide, a = atomic, c = compressed (16 bit instruction length). |
Ahh, that makes sense Note that the Hazard3 doesn't have float (handled by a library AFAIK) |
:-) now I understand !! |
I have uploaded new pre release binaries of fpcupdeluxe. They will now download/use the raspberry binary tools. Please test. |
It's also worth mentioning that ... The Pico(1?) had no FP either but also had an optmised FP library At some point (when everything is OK) it may be worth while adding risc to the Pico btn (or having a pico 2 btn). Pico2 is a vast improvement over Pico so likely to be more popular (once in good supply) Did complete install And - Success |
FPC doesn't yet support hardware floating point math on risc-v. For interest floating point functionality is indicated by: f - 32 bit single, d - 64 bit double, q - 128 bit quad precision. |
People will be queueing up for the fimac :) It's also got hardware SHA-256 and ARM Trust Zone - not that I imagine there are any codes... |
Just installed by using the Pico button on the main app
After everything installed I switched to the cross tab and saw arm/embedded was pre-selected
Trying to select risc32/embedded should theoretically allow compilation for the Pico2 but this option resulted in 'no valid CPU target for embedded'
If you check out the specifications section here you will note that the Pico2 is dual architecture with m33 + risc32 (so there is a valid target)
The text was updated successfully, but these errors were encountered: