C2402: Variable <Ident> <State>

[ DISABLE , INFORMATION, WARNING, ERROR]

Description

A variable was allocated differently because of a pragma INTO_ROM or a pragma FAR.

Example
  #pragma INTO_ROM

  
  const int i;

  
Tips

Be careful with the pragmas INTO_ROM and pragma FAR. They are only valid for one single variable. In the following code the pragma INTO_ROM puts var_rom into the rom, but var_ram not.

  #pragma INTO_ROM

  
  const int var_rom, var_ram;

  

Note that pragma INTO_ROM is only for the HIWARE Object file format.