The meaning of program size:code=x ro-data=x rw-data=x zi-data=x
Code: The size of the flash the program occupies, stored in flash.
Ro-data (read-only data): Read-only-data, program-defined constants, such as const, stored in Flash.
Rw-data (Readable and writable data with initial value requirements):
Read-write-data, a variable that has been initialized, is stored in flash. Rw-data is copied from flash to SRAM when initialized.
Zi-data:zero-init-data, a writable variable that has not been initialized, is stored in an SRAM. Zi-data will not be counted as code because it will not be initialized.
ROM (Flash) size = Code + Ro-data + rw-data;
RAM size = Rw-data + zi-data
In short, it is the space occupied in flash when burning is written: Code+ro data+rw Data
When the program is running, the space used in the chip's internal RAM is: RW data + ZI data
=============================================================================
Total RO size (Code + RO data) 56284 (54.96kb[Note: 54.96kB = 56284/1024kb], hereinafter) Total
RW size (rw Data + ZI Da TA) 7424 (7.25kB) Total
ROM Size (Code + RO data + RW data) 56456 (55.13kB)
=============================================================================