[arm-gnu] Placing variable at absolute address in RAM

Bob Brusa bob.brusa at gmail.com
Thu Apr 5 12:04:26 UTC 2012


Am 05.04.2012 10:43, schrieb JM:
> Wow, lots of great suggestions, much more than I got at other forums,
> and quicker, too. Thank you all and I will be using everything to come
> up with a solution.
>
>
>  > Hello
>  >
>  > I've researched this, asked on other forums, and so far I'm no closer.
>  >
>  > I'm trying to place a variable at a specific address in RAM on a TI ARM
>  > Cortex-M3. I have good reason for doing so, which I can explain briefly:
>  >
>  > The micro I'm using, LM3S9B92 has a DMA controller. There are 32 DMA
>  > channels and each channel requires a 16 byte struct in RAM for
>  > housekeeping. These 32 structs are placed into an array, which is 512
>  > bytes if you do the math, and must be placed on a 1024 byte boundary.
>  > Now....the datasheet indicates that the RAM for unused DMA channels can
>  > be used for something else. I'm using only one DMA channel, which is
>  > near the end of the list. If it were near the beginning, this would be
>  > easier to recover at least some of the wasted RAM by simply not making
>  > the array 32 members long.
>
>
>
>
> _______________________________________________
> arm-gnu mailing list
> arm-gnu at codesourcery.com
> http://sourcerytools.com/cgi-bin/mailman/listinfo/arm-gnu

Great you got so many answers. Unfortunately all these people (except 
Tom) sent their answers to your email-address - instead of mailing back 
to the list. When answering to the list, everybody can see if there are 
answers of sufficient significance - and hence stop answering to already 
answered questions.
Just for next time - bob



More information about the arm-gnu mailing list