TC264 + TASKING Compiler

Forum related to ERIKA Enterprise and RT-Druid version 3

Moderator: paolo.gai

Post Reply
ChayMa
Newbie
Posts: 41
Joined: Tue Mar 26, 2019 5:44 pm

TC264 + TASKING Compiler

Post by ChayMa » Thu Aug 29, 2019 5:17 pm

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,
Attachments
Capture.PNG
Capture.PNG (9.53 KiB) Viewed 1306 times

e.guidieri
Full Member
Posts: 166
Joined: Tue May 10, 2011 2:05 pm

Re: TC264 + TASKING Compiler

Post by e.guidieri » Mon Sep 02, 2019 4:19 pm

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

ChayMa
Newbie
Posts: 41
Joined: Tue Mar 26, 2019 5:44 pm

Re: TC264 + TASKING Compiler

Post by ChayMa » Tue Sep 03, 2019 8:58 am

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,

Post Reply