AnsweredAssumed Answered

How to define a flash section for one table?

Question asked by DSPDSP on Mar 20, 2012
Latest reply on Mar 23, 2012 by PatrickN

Hello,

I am using an ADUC7020.

 

I am trying to define a section (called param ) in the flash for a parameter table that i am using.

But when i verify the content of the specifc flash address(here it is 0x00082000), i have a null content...

 

So i d like to be sure of the way of defining sections for ADUC7020....

Thank you

 

I have a para2.s file where i declare:

 

.section .param

.word 6800

.word 8000

..........

 

and have the following mapping request

 

/* Memory Definitions */

 

SEARCH_DIR(c:\Keil\ARM\INC\ADI\)

INPUT(-laduc7024)

 

 

/*

//*** <<< Use Configuration Wizard in Context Menu >>> ***

*/

 

/* Memory Definitions */

 

MEMORY

{

 

 

  IntFLASH (rx) : ORIGIN = 0x00080000, LENGTH = 0x2000

  IntPara (rx) : ORIGIN =   0x00082000, LENGTH = 512 

    IntRAM   (rw) : ORIGIN = 0x00010000, LENGTH = 8192

}

 

/* Section Definitions */

 

SECTIONS

{

 

  /* first section is .text which is used for code */

 

  .text :

  {

    *startup.o (.text)         /* Startup code */

 

    *(.text)                   /* remaining code */

 

    *(.glue_7t) *(.glue_7)

 

 

  } >IntFLASH

 

  . = ALIGN(4);

  .param  :

  {

  

     *para2.o (.text)

     } > IntPara     

 

  . = ALIGN(4);     

  /* .rodata section which is used for read-only data (constants) */

 

  .rodata :

  {

    *(.rodata)

  } >IntFLASH

 

  . = ALIGN(4);

 

  _etext = . ;

  PROVIDE (etext = .);

...................etc...............etv

Outcomes