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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: gnat ARM - predefined packages Date: Tue, 27 Jan 2015 21:55:57 +0000 Organization: A noiseless patient Spider Message-ID: References: <9ceb137a-cb4a-4e65-b152-6885f5e030b4@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="8cd79d7ffa75567f93d907bdfb272368"; logging-data="1663"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+TRMBfhsZVNtAYd7qjpQLdbgJxoZ3rYkc=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (darwin) Cancel-Lock: sha1:BYXoK0JHOxPxQsa/HYeGfYUw6uc= sha1:mSdwofbJ/vVIsp3fP7tFl3h69cA= Xref: news.eternal-september.org comp.lang.ada:24767 Date: 2015-01-27T21:55:57+00:00 List-Id: "RasikaSrinivasan@gmail.com" writes: > thanks. > > i haven't installed the native gnat on my windows system. gps is quite > functional - have done a couple of demo projects with the discovery > board already. i am planning to move to a mac development shortly. Hmm. I have the native compiler and the cross compiler installed in the same place, and while gprbuild is perfectly happy with this and the internal 'for Target use "arm-eabi";' GPS isn't; nor does it pass the Default_Switches ("ada") "--RTS=" to the compiler. GPS seems to be far too complicated a tool to use without support. > i am using the RTS provided by AdaCore. will experiment with yours > shortly. I can get the AdaCore demo to build with my RTS, with a little difficulty (interrupt names changed, I didn't realise a main program can have a priority) but it doesn't run; possibly some problem with clock configuration, anyway it looks as though it's stuck in an interrupt. > quit bizarre but i don't have a file called a-intnam.ads on my system > that I can find. (Still learning Win 8!) I was looking at GPS so that I could see how you can navigate from something's use to its declaration. I *think* you * click on the object of interest (in this case, EXTI0_IRQ) * menu Navigate > Goto Declaration I know that the Linux version of the cross compiler has the RTS files in some bizarre location; if you've installed in C:\GNAT2014 they _should_ be in C:\GNAT2014\lib\gcc\arm-eabi\4.7.4\rts-ravenscar-sfp-stm32f4. I kept a copy in my RTS project, see http://sourceforge.net/p/stm32f4-gnat-rts/code/ci/default/tree/ravenscar-sfp-stm32f4/adainclude/a-intnam.ads