What is the meaning of “Total Internal SRAM (Available) 1046528”

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
JCD
Level 3
Level 3
50 sign-ins 25 sign-ins 10 replies posted

Hello,

    Question:What is the meaning of “Total Internal SRAM (Available) 1046528”

    As the picture shows :

JCD_1-1630393611800.png

    SRAM SIZE:1MB

    Note:that 2176 bytes of RAM (at the end of the SRAM) are reserved for system use.

    SRAM The biggest theory :1024*1024=1048576(byte)

    SRAM Actual maximum :1048576-2176=1046400(byte)

    But,“Total Internal SRAM (Available) 1046528 ”

               1046528-1046400=128(byte)

    Where did this 128 bytes come from?

    注:

JCD_2-1630394040662.pngJCD_3-1630394061328.png

 

best wishes,

JCD

0 Likes
4 Replies
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Hello @JCD ,

Can you please attach your linker script? What is the value of LENGTH for the "ram" memory section? Is the ORIGIN set to 0xFF780 or did you change this by chance?

Regards,
Dheeraj

0 Likes

Hello @Dheeraj,

    This is a screenshot of my ld file 。

    

JCD_0-1630542467372.png

    Thanks for your help!

best wishes,

JCD

0 Likes
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Hello @JCD ,

Can you please share your map file? It should indicate the section consuming these 128 bytes. 

Regards,
Dheeraj

0 Likes

Hello @DheerajK_81 ,

    0xFF780 was not changed by me 。

best wishes,

JCD

0 Likes