Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

AURIX™ Forum Discussions

AndreaB
Level 2
Level 2
First like received 5 questions asked 10 sign-ins

Hello,

in my application I have a SW running on TC387 and I would like to understand how to port the code to TC322LP microcontroller.

I have looked at example code but there is only reference to TC334. I have also seen that the datasheet of TC322 is in common with TC33x so I suppose that a SW for TC334 is compatible with TC322, right?

Are there any difference in LLD?

Thanks,

Andrea

0 Likes
1 Solution
cwunder
Employee
Employee
50 solutions authored 250 sign-ins 25 likes received

You are correct when choosing the 160MHz option for the IFX_CFG_SCU_PLL_FREQUENCY it fails (missing defines). I added some defines that perhaps can work for you. Please note this not an official release by any means and you need to validate it for your use. I put the ifxScu_cfg.h file inside this zip file as you cannot upload a header file on its own 😕

View solution in original post

0 Likes
3 Replies
cwunder
Employee
Employee
50 solutions authored 250 sign-ins 25 likes received

The TC3xx is a family concept meaning you have a lot of software compatibility  between devices. If the peripheral exists on the TC322 and the TC387 your software will work (albeit you may to choose different port pins). Their is a difference in the Power Management System as the TC322 uses the Low End version. Obviously you only have one core and you have to review the memory map differences.

0 Likes

Hello, 

thank you for your response. What about clock frequency? If I am not wrong, TC322LP runs at 160MHz while TC334 could un till 300 MHz.

In the code example of TC334 if I change CPU frequency define in Ifx_cfg.h building is failing.

Could you please tell me how to fit the code?

Thanks 

Andrea

0 Likes
cwunder
Employee
Employee
50 solutions authored 250 sign-ins 25 likes received

You are correct when choosing the 160MHz option for the IFX_CFG_SCU_PLL_FREQUENCY it fails (missing defines). I added some defines that perhaps can work for you. Please note this not an official release by any means and you need to validate it for your use. I put the ifxScu_cfg.h file inside this zip file as you cannot upload a header file on its own 😕

0 Likes