Dennis Essenmacher

define a section of code in flash, it is also putting declared variables in flash

Discussion created by Dennis Essenmacher on Oct 8, 2010
Latest reply on Oct 11, 2010 by CrasyCat

I have a section defined in flash


 #pragma define_section  boot_text ".code" far_absolute RX 

In this section it is also putting any locate variable (uint8 loop) into flash. It should put this in ram but it links it into the flash area.


My .lcf file has the following:


  .= ALIGN (0x4);
  .= ALIGN (0x4);
  . = ALIGN (0x4);
  . = ALIGN (0x4);
  ___ROM_AT = .;
  ___DATA_ROM = .;
 } > bootcode

Why is it putting my locate variables in flash?