Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

Forum Post: How can I allocate a 2-bytes section in a 32-bit addressing device?

$
0
0

Since the Cortex-R4F uses a 32-bit address bus,does that mean  the minimum size of a section allocated by SECTIONS directive is 4 bytes? Does the size must be a multiple of 4?

Can I allocate a 2-bytes section  in the device?How?

I tried as followed,but failed.(Each section is used to store a 16-bit data.)

1.    Align

SECTIONS

{      .section101  :  >  RAMGrop1 align(2),      PAGE = 1

        .section102   : > RAMGrop1 align(2),      PAGE = 1}

2.    Binding

SECTIONS

{        .section101 : 0x08011500

          .section102 : 0x08011502}


Viewing all articles
Browse latest Browse all 91752

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>