Here's the Custom Target for : "riscv32imacf-unknown-none-elf" ... We set "llvm-abiname" to "ilp32f" for Single-Precision Hardware Floating Point ... Similar to "gcc -mabi=ilp32f"

github.com/lupyuen/bl_iot_sdk/

Follow

Here's how we build programs with our Custom Target ... This also builds the Rust Core Library for our Custom Target

github.com/lupyuen/bl_iot_sdk/

Our Custom Target for also needs "features" set to "+m,+a,+c,+f" ... Figured this out by comparing the Standard Rust Targets "riscv32imac-unknown-none-elf" and "riscv64gc-unknown-none-elf" (64-bit , double-precision hardfloat)

github.com/lupyuen/bl_iot_sdk/

Here's how we import IoT SDK into our Firmware ... Someday we shall auto-generate these wrappers with "bindgen" and a Rust Procedural Macro

github.com/lupyuen/bl_iot_sdk/

Show newer

@lupyuen
Could it be a mistyped 'K' for crypto extension?

@jeancf That's what the BL602 firmware says when it boots ... Also the letters seem to be sorted, so X looks kinda correct 🤔

Show newer

@lupyuen
Btw by using rust you are one step closer to switching to clang. Good for you. Great for project. Afaik fyi official rust compiler is llvm based thus connected to clang.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.