Skip to content

When using the default gcc linker script and adding the option -Wl,--print-memory, the RAM usage always displays as 100% #287

@mikisama

Description

@mikisama

The RAM usage always displays as 100% when I using the default gcc linker script

.stack (ORIGIN(RAM) + LENGTH(RAM) - __STACK_SIZE - __STACKSEAL_SIZE) (NOLOAD) :

Memory region         Used Size  Region Size  %age Used
           FLASH:       17272 B        48 KB     35.14%
             RAM:        4080 B       4080 B    100.00%

I fix this by change the linkscript to

  .stack (NOLOAD) :
Memory region         Used Size  Region Size  %age Used
           FLASH:       17272 B        48 KB     35.14%
             RAM:        1640 B       4080 B     40.20%

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions