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 X-Received: by 10.50.49.33 with SMTP id r1mr2808509ign.3.1407295489758; Tue, 05 Aug 2014 20:24:49 -0700 (PDT) X-Received: by 10.50.30.1 with SMTP id o1mr713034igh.0.1407295489655; Tue, 05 Aug 2014 20:24:49 -0700 (PDT) Path: border1.nntp.dca1.giganews.com!nntp.giganews.com!h18no14784344igc.0!news-out.google.com!px9ni584igc.0!nntp.google.com!h18no14784336igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 5 Aug 2014 20:24:49 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=108.69.213.73; posting-account=jTyM8goAAADJ35CkjDrbWN1e-B_W_S9y NNTP-Posting-Host: 108.69.213.73 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <1747ffcd-a361-4e0a-8c74-e331597f310a@googlegroups.com> Subject: Re: GNAT SPARK:Embedded ARM Ada Project doesn't run in STM32F429 Discovery Board From: embeddedrelatedmike@scriptoriumdesigns.com Injection-Date: Wed, 06 Aug 2014 03:24:49 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: number.nntp.dca.giganews.com comp.lang.ada:188179 Date: 2014-08-05T20:24:49-07:00 List-Id: I've got it running on this board http://www.mouser.com/ProductDetail/STMicroelectronics/STM32F4DISCOVERY/?qs=sGAEpiMZZMutVogd4PRSvEN8XDBeCtgD See my c.l.a. post today on Ada on $15 hardware. It's quite possible that the clock and enabling code is different for the different chip. One thing that often gets forgotten with STM32 chips is that each GPIO port has a separate enable. Have you set the enable for port G, in the proper register? The code will look something like this: procedure Initialize is RCC_AHB1ENR_GPIOD : constant Word := 16#08#; RCC_AHB1ENR_GPIOE : constant Word := 16#10#; begin -- Enable clock for GPIO-D and GPIO-E RCC.AHB1ENR := RCC.AHB1ENR or RCC_AHB1ENR_GPIOD or RCC_AHB1ENR_GPIOE; Do you have this code for GPIOG, using the correct RCC register? Afterwards comes the configuration of the port bits: -- Configure PD12-15 GPIOD.MODER (12 .. 15) := (others => Mode_OUT); GPIOD.OTYPER (12 .. 15) := (others => Type_PP); GPIOD.OSPEEDR (12 .. 15) := (others => Speed_100MHz); GPIOD.PUPDR (12 .. 15) := (others => No_Pull); ....