Page 1 of 1

TC264 + TASKING Compiler

Posted: Thu Aug 29, 2019 5:17 pm
by ChayMa
Hello,

I am working on AURIX TC264 B-Step µC using the TASKING Compiler.
( I am using Eclipse CDT with RT-druid v3 GH65 Release)
When I compile a project that handles the TC275 µC , everything is done successfully. But, When I change the MCU_DATA to TC26X with the DEREVATIVE tc264de the compilation is aborted.

Thank you.

Best regards,

Re: TC264 + TASKING Compiler

Posted: Mon Sep 02, 2019 4:19 pm
by e.guidieri
Hi,

I made the mistake to use lmu RAM for global data even for tc26x, but tc26x do not have lmu ram

The following is a valid linker script for TC26x, something similar to this has been commited to GitHub, but we do not have a new build yet.

The fix from the previous version is to change the memory referenced in the groups from mem:mpe:lmuram/not_cached to mem:mpe:dspr0

Code: Select all

#if (!defined(USTACK_TC0))
#define USTACK_TC0 4k
#endif /* !USTACK_TC0 */
#if defined(__PROC_TC26X__)
#include "tc26x.lsl"

section_layout mpe:vtc:abs18
{
  group abs18_not_cached (ordered, run_addr=mem:mpe:dspr0) {
    select "*(.zbss|.zbss*)" (attributes=-x+r+w); 
    select "*(.zdata|.zdata*)" (attributes=-x+r+w);
  }
}

section_layout mpe:vtc:linear
{

  group liner_not_cached (ordered, run_addr=mem:mpe:dspr0) {
    select "*(.bss|.bss*)" (attributes=-x+r+w); 
    select "*(.data|.data*)" (attributes=-x+r+w);
  }
}
#else
#include <cpu.lsl>
#endif

Re: TC264 + TASKING Compiler

Posted: Tue Sep 03, 2019 8:58 am
by ChayMa
Thank you for your response.

I edited the linker script file and the build is done successfully.
So, we should edit the ee_tc_tasking_flash.lsl file whenever the erika files is pulled.

Best regards,