AnsweredAssumed Answered

How to assign functions to specific address when generating binary files?

Question asked by Byungju Kim on Jul 15, 2018
Latest reply on Jul 16, 2018 by Byungju Kim

Hi

 

I want to assign functions to specific address when generating binary files.

So I use #pragma arm section . But Warning is occured and Don't process it.

How to assign functions to specific address?

 

Like below :

------ Linker file-----------

MEMORY
{
  m_flash               (RX)  : ORIGIN = 0x00010410, LENGTH = 0x0006FBF0
}

 

SECTIONS

{
   .flash :
  {
    . = ALIGN(4);
    KEEP (*(.flash))
    . = ALIGN(4);
  } > m_flash

}

 

----- C file. ----------------

#pragma arm section code="flash"

FuncA();

FuncB();

FuncC();

#pragma arm section

 

 

Best regards,

Byungju.

Outcomes