Part Number: MSP430FR5959
Tool/software: Code Composer Studio
When i set a variable in fram like this
#pragma SET_DATA_SECTION(".sysmem")
unsigned int framinit;
#pragma SET_DATA_SECTION()
Sometime the variable is initialized to 0xFFFF sometimes 0x0000
I have two different projects with identical linker files. But they behave different.
in both projects all unused fram is set to 0xFFFF
in both projects the variable is located at 0xC400
One project output
@c400
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
the other does not write anything to this part of memory.
File starts at 0xc800 where i have some code
I guessing there is a setting in code composer that is different in each project.
In the pass i just dealt with this behavior but i would like to know how to correct it so i can expect it to always work one way.
I hope i explain this well...
Thank you in advance.