Posts: 1
Joined: Tue May 15, 2018 9:17 am

CortexM0+/M4 libraries on raspberry pi B+

Tue May 15, 2018 9:42 am

I have some binary file compiled for mcu with cortexM0+ and M4 architecture.
Cortex M0+ are ARMv6-M, Cortex M4 are ARM v7-M, meanwhile the processor of my rasperry according to cpu info is ARMV6:

Code: Select all

cat /proc/cpuinfo
processor       : 0
model name      : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS        : 697.95
Features        : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xb76
CPU revision    : 7

Hardware        : BCM2835
Revision        : 000f
Serial          : 000000006d9ae1a3
Would binaries compiled for CM0+/CM4 be able to run on the raspberry?
Thanks and Best regards,

Posts: 930
Joined: Sat May 26, 2012 5:32 pm

Re: CortexM0+/M4 libraries on raspberry pi B+

Tue May 15, 2018 8:17 pm

the binaries, no. the cortex-m part of it is one problem the bigger problem is that the processor itself is the least of your worries, the processor is just a means to get at the peripherals which will vary widely not only across arm based processors but even within the cortex-m0 world for example your code wont run from one vendors chip to another, it will execute, but since some percentage of the code is talking to chip specific things, a different chip is incompatible. with the rpi almost all of the cortex-m0 instructions will execute, but the address space and peripherals are the problem. cortex-m4 I think there is some thumb2 extension support but even there you land in the same problem.

if coming from a source code perspective then it depends you would have to port the backends of the libraries to the pi.

Return to “Bare metal, Assembly language”

Who is online

Users browsing this forum: ardera and 1 guest