@lupyuen besides gcc-arm-embedded, one can also utilize Nixpkgs' cross compilation support for fetching the toolchains. This is a shell.nix for playing around NuttX on BL602:

(import <nixpkgs> {
crossSystem = {
config = "riscv32-none-elf";
libc = "newlib";
gcc.arch = "rv32imafc";
gcc.abi = "ilp32f";
};
}).callPackage (
{ mkShell, kconfig-frontends }:
mkShell {
nativeBuildInputs = [ kconfig-frontends ];
buildInputs = [ ];
}
) { }

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.