armv7r-none-eabi* and thumbv7r-none-eabi*

Bare-metal target for CPUs in the Armv7-R architecture family, supporting both the A32 (Arm) ISA and T32 (Thumb) ISA.

The armv7r-none-eabi* targets use A32 (Arm) mode by default and the thumbv7r-none-eabi* targets use T32 (Thumb) mode by default.

Processors in this family include the:

See arm-none-eabi for information applicable to all arm-none-eabi targets, in particular the difference between the eabi and eabihf ABI.

Target maintainers

Requirements

When using the hardfloat (-eabibf) targets, the minimum floating-point features assumed are those of the vfpv3-d16, which includes single- and double-precision, with 16 double-precision registers. See VFP in the Cortex-R processors for more details on the possible FPU variants.

If your processor supports a different set of floating-point features than the default expectations of vfpv3-d16 (for example, if it only supports single-precision and not double-precision), then those features should also be enabled or disabled as needed with -C target-feature=(+/-) (or using a custom JSON target). If you are removing features then you will also need to recompile the Rust Standard Library from source (e.g. using -Zbuild-std=core).

See the bare-metal Arm docs for details on how to use these flags.

Table of supported CPUs for (arm|thumb)v7r-none-eabi

CPU FPU Target CPU Target Features
Any No None None
Cortex-R4 No cortex-r4 None
Cortex-R4 DP cortex-r4 +vfp3
Cortex-R4 SP cortex-r4 +vfp3,-fp64
Cortex-R5 No cortex-r5 -fpregs
Cortex-R5 DP cortex-r5 None
Cortex-R5 SP cortex-r5 -fp64
Cortex-R7 No cortex-r7 -fpregs
Cortex-R7 DP cortex-r7 None
Cortex-R7 SP cortex-r7 -fp64
Cortex-R8 No cortex-r8 -fpregs
Cortex-R8 DP cortex-r8 None
Cortex-R8 SP cortex-r8 -fp64

Table of supported CPUs for (arm|thumb)v7r-none-eabihf

CPU FPU Target CPU Target Features
Any DP None None
Any SP None -fp64
Cortex-R4 DP cortex-r4 None
Cortex-R4 SP cortex-r4 -fp64
Cortex-R5 DP cortex-r5 None
Cortex-R5 SP cortex-r5 -fp64
Cortex-R7 DP cortex-r7 None
Cortex-R7 SP cortex-r7 -fp64
Cortex-R8 DP cortex-r8 None
Cortex-R8 SP cortex-r8 -fp64

Never use the -fpregs target-feature with the (arm|thumb)v7r-none-eabihf targets as it will cause compilation units to have different ABIs, which is unsound.

Start-up and Low-Level Code

The Rust Embedded Devices Working Group Arm Team maintain the aarch32-cpu and aarch32-rt crates, which may be useful for writing bare-metal code using this target. Those crates include several examples which run in QEMU and build using these targets.