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 2002:a24:7f52:: with SMTP id r79mr4625936itc.33.1554727668786; Mon, 08 Apr 2019 05:47:48 -0700 (PDT) X-Received: by 2002:a05:6830:1192:: with SMTP id u18mr19528148otq.295.1554727668614; Mon, 08 Apr 2019 05:47:48 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!2.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!85.12.16.68.MISMATCH!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!b2no217218itd.0!news-out.google.com!r82ni610ita.0!nntp.google.com!136no416038itk.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 8 Apr 2019 05:47:48 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2400:2411:93e0:6200:a069:9ec8:3269:2786; posting-account=V8n8rgoAAAAxY-ioSepwPOY8TxGG6wkj NNTP-Posting-Host: 2400:2411:93e0:6200:a069:9ec8:3269:2786 References: <2d99a259-3288-4981-9bda-97145077a5bd@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <6d36d6e0-c5c6-43d2-b51d-1bf348ab26b3@googlegroups.com> Subject: Re: Understanding GNAT Bare Board Run-time for Cortex-M From: Daniel Way Injection-Date: Mon, 08 Apr 2019 12:47:48 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 2130 X-Received-Body-CRC: 1066238920 Xref: reader01.eternal-september.org comp.lang.ada:56101 Date: 2019-04-08T05:47:48-07:00 List-Id: On Monday, April 8, 2019 at 4:37:03 PM UTC+9, Simon Wright wrote: > My Cortex GNAT RTS[1] is based on FreeRTOS[2] and includes an RTS for > the nRF51 as found in the BBC micro:bit. That's a cortex-m0, but as far > as I can see[3] the differences from the m0+ are minimal. Thank you, I'll check out your version of FreeRTOS as reference while I learn about the tasking model. As an aside, why did you decide to create your own runtime rather than use the ones installed with GNAT CE? > The main issue I had was with the clock; the nRF51 doesn't have a system > tick, instead I had to use RTC1 (I think AdaCore used RTC0). My controller uses the SysTick, so hopefully I can reuse the timing functions from the STM32F4 runtimes. Thanks for the great advice!