Clock init issue on Infineon TriCore TC277TE

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

Post Reply
p_diehard
Newbie
Posts: 2
Joined: Mon Dec 07, 2015 10:46 am

Clock init issue on Infineon TriCore TC277TE

Post by p_diehard » Thu Dec 10, 2015 2:21 pm

Hi,

I'm new to EE OS and I've got a problem to get an EE OS running on a Infineon TriCore TC277TE.

The EE OS Version is 2.3.0 running on Ubuntu. As Debugger I use Lauterbach "TRACE32 PowerView for TriCore" Version S.2013.06.000045171.

I'm referring to the "ee/examples/tricore/tc2Yx" examples e.g. "schedule_tables". The building of the example goes without any errors.
But when I open the TRACE32 debugger, load the Output/t32.mm file and try to execute EE OS, the debugger states "unable to read on-chip trace state".

It seams there is something wrong with the clock init of the TriCore.

When I take out following lines in file "ee/pkg/mcu/infineon_common_tc2Yx/inc/ee_tc2Yx_internal.h" the example runs fine through the debugger (LEDs blinking):

Code: Select all

  /* Disable the VCO Bypass Mode */
  SCU_PLLCON0.B.VCOBYP = 0U;

  while ( SCU_PLLSTAT.B.VCOBYST == 1U ) {
    ;  /*Wait until normal mode is entered */
  }

  /* Automatic oscillator disconnect enabled */
  SCU_PLLCON0.B.OSCDISCDIS = 0U;
Is there a known issue about this or am I doing something wrong?

Thanks in advance.

Patrick.

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

Re: Clock init issue on Infineon TriCore TC277TE

Post by e.guidieri » Thu Dec 10, 2015 4:42 pm

That MCU that you are using it's not officially suupported so there could be some issues like that. Which Borad are you using? If it is APPKIT_TC2X5 you need to define in your OIL.

EE_OPT = "EE_APPKIT_TC2X5";

and remove

BOARD_DATA = TRIBOARD_TC2X5;


In any case instead of elimate the code you said (that actually enable the PLL), try to change the SCU_CCUCON0 configuration. In the past, when APPKIT_TC2X5 support have been introduced by a german guy, we had a similar problem in clocking procedure and the register we had to change was that. Look at the top of the file you pointed at to see what we have done.

Bye,
Errico Guidieri

paolo.gai
Administrator
Posts: 875
Joined: Thu Dec 07, 2006 12:11 pm

Re: Clock init issue on Infineon TriCore TC277TE

Post by paolo.gai » Fri Dec 11, 2015 9:37 am

...please also report issues based on the latest version of ERIKA... 2.3.0 is quite old.

Ciao,

PJ

p_diehard
Newbie
Posts: 2
Joined: Mon Dec 07, 2015 10:46 am

Re: Clock init issue on Infineon TriCore TC277TE

Post by p_diehard » Fri Dec 11, 2015 12:29 pm

Regarding the version number, I took it from your ViewVC:
http://svn.tuxfamily.org/viewvc.cgi/eri ... iew=markup

I checked the svn out several days ago so it should be the current version but probably the version number in the file is updated.

Post Reply