[arm-gnu] Placing variable at absolute address in RAM
JM
hondgm at yahoo.com
Thu Apr 5 10:43:24 UTC 2012
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/arm-gnu/attachments/20120405/f6b8e20b/attachment.html>
More information about the arm-gnu
mailing list