1. In my cmd file:
RAML0 : origin = 0x008000, length = 0x000800 /* on-chip RAM block L0 */
RAML00 : origin = 0x3F8000, length = 0x000800
.ebss : >> RAML0 | RAML00 PAGE = 1
2. In my .map
00008011 _uiCanOnCon
003f800e _SetF
uiCanOnCon is defined unsigned int, SetF is struct , SetF.fCmd is a float and it's address is at 003f8011
3. When I used Optimization level off, and run this code SetF.fCmd = 111.0,
uiCanOnCon will be changed to 0x42DE. why the value of uiCanOnCon would be changed?
But when I used Optimization level -O0 or higher, these is no problem.
I am using CCS Version: 6.2.0.00050. Compiler TI v15.12.3.LTS
4. I usually use Optimization level off to build my project.
If I must use Optimization , how should the Optimization level?