comp.lang.ada
 help / color / mirror / Atom feed
From: 0x00080000@gmail.com
Subject: support for Cortex-M7 in GNAT-GPL?
Date: Thu, 16 Jul 2015 07:22:33 -0700 (PDT)
Date: 2015-07-16T07:22:33-07:00	[thread overview]
Message-ID: <a91b9034-11d7-4149-8543-35cf4eeaa2b0@googlegroups.com> (raw)

Dear all,

a) I have the following GNAT-GPL version for ARM installed: GNAT GPL 2015 (20150428-49)

b) Before purchasing a 32F746GDISCOVERY board containing a Cortex-M7 core, I tried to figure out if this version of gnat would support this board/micro-controller.

=>

A) different files in the runtime do seem to hint that this is indeed the case as they execute different branches depending on the value 'hard-wired' in the 'MCU device ID code' register located at address 16#E004_2000#

One of the values that this registers content is compared to is defined in the file s-stm32f.ads as:

DEV_ID_STM32F7xxxx : constant := 16#449#; 

B) However, this version of the gnat compiler does not seem to support the compiler switch -mcpu=cortex-m7

=>

As such, I'm still puzzled whether this version of gnat does indeed has support for the Cortex-M7 or not. Did anybody on this forum already tried this out?
 
Side thought:
both the Cortex-M4 and Cortex-M7 are based on the ARMv7-M ISA.
As such, specifying -mcpu=cortex-m4 just might work out fine
Despite this observation, recent versions of gcc do seem to insist on using -mcpu=cortex-m7 (?)

Kind regards,
Stijn


             reply	other threads:[~2015-07-16 14:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-16 14:22 0x00080000 [this message]
2015-07-16 16:18 ` support for Cortex-M7 in GNAT-GPL? Luke A. Guest
2015-07-16 17:19 ` Jerry Petrey
2015-07-16 19:12 ` Simon Wright
2015-07-17 10:25 ` 0x00080000
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox