Daniel, l am very thank for you response firstly.
if l have "uint8 p_flash_data1[1024]" and "uint8
uint16 p_flash_data2[128]" and "uint32 p_flash_data3[256]" now,l want save it in "app_data" memory,please check my code to response my setting is right or wrong ,thank you,Daniel.
below is the code,p_flash_data1[1024] memory is 0x00008000 to 0x000083ff,
p_flash_data4 to p_flash_data259 memory is 0x00008400 to 0x000084ff,
p_flash_data2[128] memory is 0x00008500 to 0x000086ff,
p_flash_data3[128] memory is 0x00008700 to 0x00008aff
in link file , below code setting is to trouble ,whether is any simple setting,for example,if use "#pragme" to set it,please give me the way to set it. thank you
__attribute__ ((section(".data_app"))) uint8_t p_flash_data4 ;
_attribute__ ((section(".data_app"))) uint8_t p_flash_data5 ;
...
_attribute__ ((section(".data_app"))) uint8_t p_flash_data259 ;
in .c file
__attribute__ ((section(".data_app"))) uint8_t p_flash_data4 ;
__attribute__ ((section(".data_app"))) uint8_t p_flash_data5 ;
__attribute__ ((section(".data_app"))) uint8_t p_flash_data259 ;
__attribute__ ((section(".data_app2"))) uint16_t p_flash_data3[100] = {1,2,3,4,5};
in link file
.data_app1 :
{
. = ALIGN(2);
KEEP (*(.data_app1))
. = ALIGN(2);
} > app_data
.data_app2 :
{
. = ALIGN(4);
KEEP (*(.data_app2))
. = ALIGN(4);
} > app_data