From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.13.236.5 with SMTP id v5mr11586040ywe.33.1437056553985; Thu, 16 Jul 2015 07:22:33 -0700 (PDT) X-Received: by 10.140.96.137 with SMTP id k9mr218600qge.10.1437056553970; Thu, 16 Jul 2015 07:22:33 -0700 (PDT) Path: buffer2.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!69no65044qgl.1!news-out.google.com!30ni1303qgi.0!nntp.google.com!z61no1428222qge.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 16 Jul 2015 07:22:33 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=91.183.168.164; posting-account=wA3MUAoAAABsPNrAYlvdQYmvtYuTkJVJ NNTP-Posting-Host: 91.183.168.164 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: support for Cortex-M7 in GNAT-GPL? From: 0x00080000@gmail.com Injection-Date: Thu, 16 Jul 2015 14:22:33 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: number.nntp.giganews.com comp.lang.ada:194129 Date: 2015-07-16T07:22:33-07:00 List-Id: 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