AnsweredAssumed Answered

LPC812 - placing data on specific address in flash

Question asked by vojtechhavlicek on Jan 30, 2018
Latest reply on Feb 8, 2018 by Kerry Zhou

Hi,

 

I need to place specific data (default values which could be changed via IAP) into specific address on flash when I program the MCU.

 

I found cr_section_macros.h  - Placing code/rodata into different FLASH blocks 

There is macro 

#define __RODATA_EXT(bank,name) __SECTION_EXT(rodata, bank, name)

It´s ok but there is no option to define specific address where the data will be placed.

 

Is there any option/approach How I can complete this task?

 

Is it possible to create variable in flash somehow via pointer?

 

There is another solution which could work but I would prefer something which is easier... 

Defining Variables at Absolute Addresses with gcc | MCU on Eclipse 

Outcomes