This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Why RW section belongs to Total ROM

Hi All,

I am using Keil uV5.15 version IDE for Cortex M0 controller. In order to calculate the total flash usage I am finding conflicts by seeing:
1. Size in IDE after build "data + RO" in KB
2. Size mention in map file - Total ROM size "data + RO + RW"

Can you please tell which data I should consider and why it is different at different places?
As per my understanding, RW is data belongs to RAM. So why it is consider in map file for ROM size calculation?

Thanks in advance!

Parents
  • Initialized RW variables needs to get their initial values from somewhere. So they can consume space in both flash and RAM.

    Uninitialized RW variables on the other hand can be just zero-filled by the startup code, and so do not consume any additional flash space.

Reply
  • Initialized RW variables needs to get their initial values from somewhere. So they can consume space in both flash and RAM.

    Uninitialized RW variables on the other hand can be just zero-filled by the startup code, and so do not consume any additional flash space.

Children