OVP Forums - A community of assistance, help, questions, and answers.
  FAQFAQ    SearchSearch      RegisterRegister  ProfileProfile    Log in to check your private messagesLog in to check your private messages    Log inLog in
make_arm cortex m7

Post new topic   Reply to topic    Open Virtual Platforms Forum Index -> Ask a Question
View previous topic :: View next topic  
Author Message

Joined: 17 Jul 2019
Posts: 7

PostPosted: Thu Sep 05, 2019 9:22 pm    Post subject: make_arm cortex m7 Reply with quote

Respected sir, I want to cross compile a c program for arm cortex m7
I have used the instruction, make CROSS=ARM_CORTEX_M7 and obtaining the message as toolchain is not installed. can u verify me that ARM_CORTEX_M7 is correct or any other keyword to be used instead.
Back to top
View user's profile Send private message
OVP Technologist
OVP Technologist

Joined: 27 Feb 2008
Posts: 1581
Location: United Kingdom

PostPosted: Thu Sep 05, 2019 11:54 pm    Post subject: Reply with quote

The value of CROSS is used to select the Makefile to include from the cross compiler installation directory IMPERAS_HOME/lib/IMPERAS_ARCH/CrossCompiler. These are a set of examples showing the settings to generate code for particular processor variants. It is not intended to be complete. In fact these are intended to help get started and for use in the Examples and Demos. Anyone generating code for a 'real' project we would expect them to setup there own compilation infrastructure.

These Makefiles are of the form CROSS.makefile.include e.g. ARM _CORTEX_A9.makefile.include.

So you can look in this directory to see what Makefiles have been created

$ cd /c/Imperas/lib/Windows64/CrossCompiler
ARM_CORTEX_A.makefile.include ARM_CORTEX_A8.makefile.include ARM_CORTEX_M0PLUS.makefile.include ARM_CORTEX_M4F.makefile.include
ARM_CORTEX_A15.makefile.include ARM_CORTEX_A9.makefile.include ARM_CORTEX_M1.makefile.include ARM_CORTEX_R4.makefile.include
ARM_CORTEX_A5.makefile.include ARM_CORTEX_M.makefile.include ARM_CORTEX_M3.makefile.include ARM_CORTEX_R4F.makefile.include
ARM_CORTEX_A7.makefile.include ARM_CORTEX_M0.makefile.include ARM_CORTEX_M4.makefile.include

So there is currently no default makefile setup to build an applicaiton targetting the Cortex-M7.

You can check if the cross compiler installed supports this processor variant using the target help on the gcc compiler.

$ cd armv7-arm-none-eabi/bin/
$ ./arm-none-eabi-gcc --target-help

Known ARM CPUs (for use with the -mcpu= and -mtune= options):
arm1020e arm1020t arm1022e arm1026ej-s arm10e arm10tdmi arm1136j-s
arm1136jf-s arm1156t2-s arm1156t2f-s arm1176jz-s arm1176jzf-s arm2 arm250
arm3 arm6 arm60 arm600 arm610 arm620 arm7 arm70 arm700 arm700i arm710
arm7100 arm710c arm710t arm720 arm720t arm740t arm7500 arm7500fe arm7d
arm7di arm7dm arm7dmi arm7m arm7tdmi arm7tdmi-s arm8 arm810 arm9 arm920
arm920t arm922t arm926ej-s arm940t arm946e-s arm966e-s arm968e-s arm9e
arm9tdmi cortex-a12 cortex-a15 cortex-a15.cortex-a7 cortex-a5 cortex-a53
cortex-a57 cortex-a57.cortex-a53 cortex-a7 cortex-a8 cortex-a9 cortex-m0
cortex-m0.small-multiply cortex-m0plus cortex-m0plus.small-multiply
cortex-m1 cortex-m1.small-multiply cortex-m3 cortex-m4 cortex-m7 cortex-r4
cortex-r4f cortex-r5 cortex-r7 ep9312 fa526 fa606te fa626 fa626te fa726te
fmp626 generic-armv7-a iwmmxt iwmmxt2 marvell-pj4 mpcore mpcorenovfp native
strongarm strongarm110 strongarm1100 strongarm1110 xscale

So the Cortex M7 is supported.

I suggest that you take a copy of the ARM_CORTEX_M3 makefile.include and create yourself one for the Cortex-M7 by modifying the -mcpu setting.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Open Virtual Platforms Forum Index -> Ask a Question All times are GMT - 8 Hours
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Information regarding OVP © 2008-2020 Imperas Software