This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Linker configuration from arm-none-eabi-gcc to ARMCC

Hello,

I've a project which are started with arm-none-eabi-gcc and added in the last time the ARMCC. The linker configuration can't easy converted.

At the moment I search for a solution to define in the scatter file like the gcc linker file. This is used for the MPU configuration.

Here the content of my gcc linker file:

/* table of MPU sections */

.table.sections :

{

     . = ALIGN(4);

     LKF_SECTION_TABLE_START = .;

     LONG (__sec0_start)

     LONG (__sec0_end)

     LKF_SECTION_TABLE_END = .;

} > FLASH

/* MPU section 0 */

.sec0.data ALIGN(0x400)

{

     __sec0_start = .;

     *(.sec0_init)

     *sec0*.o(.data)

     . = ALIGN(4);

} > SRAM

.sec0.bss (NOLOAD) :

{

     *(.sec0)

     *sec0*.o(.bss COMMON)

     . = ALIGN(0x400);

     __sec0_end = .;

}

Now I need a solution for define the .table.sections in the ARMCC scatter file. The section is defined with:

sec0 AlignExpr(+0, 1024)  { .ANY(.sec0.data)  sec0*.o(+RW, +ZI) }

With the gcc can I read the .table.sectio with: extern uint32_t LKF_SECTION_TABLE_START[];

The using of the $$ variables in the C source code from the armlink is not so good. Have everybody a solution for definition of this table in the scatter file?

Thanks four Your help,

Bernd