"__pRAM_WIR_start_high" defined in the Linker Command File is not word

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

"__pRAM_WIR_start_high" defined in the Linker Command File is not word

584 Views
j___
Contributor IV

I am using CW 10.7 for MCU. Also, I borrowing pieces for the LCF from the demo project located here:

Linker Command File (LCF) P:RAM Clarification 

Now, I am getting the message:

>"__pRAM_WIR_start_high" defined in the Linker Command File is not word-
>aligned, address in bytes is 1.

Below is the relevant excerpt from my LCF.

Regards...

-------------------------------------------------------------------------------

    .ApplicationCodeInRAM :
    {
        . = ALIGN(2);
          __PRG_RAM_START=.;
          .=__PRG_RAM_START + __DATA_END;
          __pRAM_WIR_start = .;

          # insert RAM routine (this is for proper move of memory pointer and it is equal to the row above)
          * (.pRAM_from_Flash_code)

          # You can add your sections here.

    } > .p_internal_RAM

    .WIRData :
    {
          # ****** start WIR ******
          # definition of symbols for copy of WIR routine from pROM to pRAM
          F_LWIR_size     = __WIR_size;

          F_LWIR_ROM_addr = __pROM_WIR_start;
          F_LWIR_ROM_addr_low = __pROM_WIR_start & 0xFFFF;

          __pROM_WIR_start_high =  __pROM_WIR_start / 0x10000;

          F_LWIR_ROM_addr_high = __pROM_WIR_start_high;

          F_LWIR_RAM_addr = __pRAM_WIR_start;
          F_LWIR_RAM_addr_low = __pRAM_WIR_start & 0xFFFF;

          __pRAM_WIR_start_high =  __pRAM_WIR_start / 0x10000;

          F_LWIR_RAM_addr_high = __pRAM_WIR_start_high;
          # ****** end WIR ******
    } >> .x_internal_RAM
0 Kudos
1 Reply

397 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

To remove this warning, please use the ALIGN command to align the ‘__pRAM_WIR_start_high’ on a word-boundary.  for example:

              . = ALIGN(2);
              __pRAM_WIR_start_high = . ;

If this can't help you fix the issue, please upload your demo project here. thus we can check it directly.


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos