Page 1 of 1

Clock init issue on Infineon TriCore TC277TE

Posted: Thu Dec 10, 2015 2:21 pm
by p_diehard
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.

Re: Clock init issue on Infineon TriCore TC277TE

Posted: Thu Dec 10, 2015 4:42 pm
by e.guidieri
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

Re: Clock init issue on Infineon TriCore TC277TE

Posted: Fri Dec 11, 2015 9:37 am
by paolo.gai
...please also report issues based on the latest version of ERIKA... 2.3.0 is quite old.

Ciao,

PJ

Re: Clock init issue on Infineon TriCore TC277TE

Posted: Fri Dec 11, 2015 12:29 pm
by p_diehard
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.