Page 1 of 1

Changing linker script (AURIX)

Posted: Thu Sep 15, 2016 12:18 pm
by HanStep
Hello,

I would like to implement some memory test functions from a software library (SafeTlib). Several tests require specific linker support. Section alignment and memory section reservations are assumed to be defined by the linker script. I guess the linker script is generated dynamically by Erika (\Debug\master\ee_tc27x_gnu_relocable.ld)

Is there a way to insert own entries or to make changes in the linker script?

Thanks in advance!

Best regards,
Stephan

P.S.: I´m working with Erika Enterprise 2.6.0, GNU compiler and AURIX TC277 microcontroller.

Re: Changing linker script (AURIX)

Posted: Fri Sep 16, 2016 1:58 pm
by e.guidieri
You can use LINKERSCRIPT = "your_linker_script.ld"; entry in CPU_DATA OIL construct.

http://erika.tuxfamily.org/wiki/index.p ... _Aurix#CPU

If you are building as single ELF (As does it seems since you are pointing to a generated file of the single ELF build toolchain) you need to provide the final linkerscript even in the MCU_DATA construct. A good starting point for this linker script is the one you find in the Debug folder, at the end of a normal ERIKA build.

Errico Guidieri