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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,69431b06fe9a3239 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: How do I disable elaboration code on this Date: Mon, 11 Apr 2011 19:30:39 +0100 Organization: A noiseless patient Spider Message-ID: References: <58bc4fb4-5f6a-48d6-9c98-0dde7ac619df@p16g2000vbo.googlegroups.com> <4da2176e$0$6977$9b4e6d93@newsspool4.arcor-online.net> <93b20b91-03ed-48d2-87b6-a109127a5a4f@l18g2000yql.googlegroups.com> <6bca8b26-152f-482c-95c0-1abf88b6b29b@a26g2000vbo.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="17937"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+E03rwNdMwmlY8R1Tb3pycflnS0JCovYE=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (darwin) Cancel-Lock: sha1:ha5vmKmIgNrgp9nL0y172teIVeE= sha1:LKMDkYIj4OgTqkYZK4GKOlwwvHs= Xref: g2news1.google.com comp.lang.ada:18758 Date: 2011-04-11T19:30:39+01:00 List-Id: Simon Clubley writes: > The issue here is that when the Cortex M3 comes out of reset it reads, > and loads, the stack pointer from the first longword in that array and > then jumps to the address specified by the second longword. I see (in the definitive guide) Reset Sequence After the processor exits reset, it will read two words from memory: * Address 0x00000000: Starting value of R13 (the stack pointer) * Address 0x00000004: Reset vector (the starting address of program execution; LSB should be set to 1 to indicate Thumb state) The part about the LSB being set to 1 may cause difficulty! I suppose one could say "Foo'Address + 1" (which means the vector would have to be an array of System.Address, not so good but I think unavoidable??)