28 Dec
2016
28 Dec
'16
4:18 a.m.
RPi 2 B is Armv7. IIRC. Idk about 3, But I think it is ArmV7
RPi3 is armv8-a (it has Cortex-A53 cores), not armv7-a. But it's offtopic. OP's question was about cross-compiling for Cortex-M which is for microcontrollers. He just wants to compile code for it on RPi as a host. It's not very different from compiling for Cortex-M on x86_64. -- Best regards, Konstantin Gribov