lpcware

Adding a constant at perticular location in program memory

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by syed on Thu Dec 09 08:31:53 MST 2010
Hi All,
I am using LPC1114 with LPCXpresso environment. I have gone through the Code Red wiki but could not find the answer. I am trying to place a constant (eg. crc = 0x12345678) at a perticular location in program memory. I want to know the procedure to add this constant at say suppose 0x7FEC in the program memory.

I think we need to create a section and then reference in program memory
  __attribute__((section(".crc_fixup")))  unsigned int app_crc_fixup = 0x12345678;

So can anyone please provide me what changes need to be made in the linker script?

  Regards,
  Syed

Outcomes