Missing Information in map file | Cypress Semiconductor
Missing Information in map file
In our current project we need the addresses of variables in SRAM as chosen by the compiler.
As we use both PSoC 3 and PSoC 5LP we use compiler-dependent script to extract this information from the map
file either in Keil or in GCC format.
Now it seems that with PSoC Creator 3 and its move to GCC 4.73 this information is gone.
I have not found a command line option difference that could explain it.
For example, with PSoC Creator 2.0 and gcc 4.41 I find the following in the map file:
.bss 0x1fff82d6 0x1 .\CortexM3\ARM_GCC_441\Debug\PowerConverter.a(USBFS_1.o)
This tells me that the address of the variable named "USBFS_1_initVar" is at address 0x1fff82d6 in the SRAM (which starts at 0x1fff8000).
This information is missing in the map file when building with PSoC Creator 3.0.
I wonder whether this is due to a change of the GNU tools or a difference in the linker control file.
I have compared two linker control files, and there were so many differences that I cannot identify whether one of them relates to the details of the map file.