I am confused as to the memory map for my Hitex board that runs a NXP LPC4350.
The Users manual states that the first segment of SRAM is 128KB, however when I build my project the Memory usage meter says that SRAM1 has a total of 64 KB (not 128KB).
So I decided to look at the memory map. It has an entry called SRAM1, at the start of SRAM1 (0x10000000). There another entry called SRAM1_CM0 which appears to be the ending address of SRAM1? However both of their sizes are 64KB not 128KB.
Upon looking sat the XML file I can see that the memory sizes are being divided by 2? is this because of the word size that is being referenced during link time? There are 64K 16 bit locations as opposed to 128K 8 bit locations?
<MemorySegment start="0x10000000" name="SRAM1" size="0x20000-$(SRAM1_CM0_SIZE:0x20000/2)" access="Read/Write"/>
<MemorySegment start="0x10000000+0x20000-$(SRAM1_CM0_SIZE:0x20000/2)" name="SRAM1_CM0" size="$(SRAM1_CM0_SIZE:0x20000/2)" access="Read/Write"/>
Please sign in to leave a comment.