I am using MSP430F5340 MCU, IDE is IAR workbench，today after adding some lines of code, I found my data that previously stored in flash was crashed. So I supposed the code memory size in flash has beyond the data flash boundary. This MCU has total 64K flash (0xFFFF bytes), my data start address is 0xF400，and ends at 0xF9FF，in total 3 blocks of 0.5K bytes. So from 0x0000-0xF400 (61K) is for code area.
From the last lines of map file, I found something below:
41196 bytes of CODE memory 3 022 bytes of DATA memory (+ 83 absolute ) 5 421 bytes of CONST memory
41196+3 022+5 421 <61K bytes, so how could my own data in flash was crashed?
Previously, when my data was not influenced, the map file shows:
39 478 bytes of CODE memory 3 022 bytes of DATA memory (+ 83 absolute ) 4 755 bytes of CONST memory
I wonder the code memory starting address is not 0x00，and after adding some lines, the code area just cover the data area.
Hope someone could help to explain me this matter.
I think this question involves both on firmware and hardware section, so I posted it both places.
The two maps files and MSP430F5340 datasheet were attached.
Map File1 (Data is right): https://drive.google.com/file/d/13g3YaZKI10u1q55rDdmwMBhIGRPOl71d/view?usp=sharing
Map File2 (Data is wrong): https://drive.google.com/file/d/1l5opnbOKgD1kPARb_j0NY6KI2WhXvE9J/view?usp=sharing