S32k148 RTD Linstack without AUTOSAR

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32k148 RTD Linstack without AUTOSAR

跳至解决方案
2,281 次查看
christofhaiding
Contributor IV

Hi!

Is it possible to use the RTD Linstack in a non-Autosar project?

Regards

Christof

 

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
2,134 次查看
namnguyenviet
NXP Employee
NXP Employee

Hello @christofhaiding ,

Yes, that's what I'm talking about. It's up to you to select either the Mcu driver code or your clock configuration code, just make sure that your Lin configuration has the correct clock frequency value according to the code generator. 

Best Regards,

Nam

在原帖中查看解决方案

0 项奖励
回复
7 回复数
2,203 次查看
namnguyenviet
NXP Employee
NXP Employee

Hello @christofhaiding ,

In your project, you can choose the non-AUTOSAR components from "Drivers" layer. Please note that LIN stack driver only supports link to Lin_43 from MCAL layer, but other components can be selected from "Drivers" layer, e.g. Siul2_Port_Ip, Clock_Ip, Ftm_Ip,...

Best Regards,

Nam

0 项奖励
回复
2,146 次查看
christofhaiding
Contributor IV

Hello Nam!

As far as i can see, to use the LIN_43 driver, we have to add also the MCU driver (we are using the S32K148).
But we are not using this driver at the moment.
Is there a way to abstract this driver?

Regards

Christof

 

0 项奖励
回复
2,141 次查看
namnguyenviet
NXP Employee
NXP Employee

Hello @christofhaiding ,

Sorry, I didn't realize that part. Lin_43 driver needs Mcu driver to get the frequency of the peripheral clock resource, in order to calculate the BDR register value. As a result you will need to configure the Mcu driver. But it's up to you to use the Mcu driver or not, i.e. you can use your clock configuration in your code, just make sure that the clock source frequency is identical.

Best Regards,

Nam

0 项奖励
回复
2,138 次查看
christofhaiding
Contributor IV

Hi Nam!

So basically, i should just add the MCAL but don't call it, just to satisfy the automatik code generator of the S32 Design Studio.

And just use the "normal" Clock calculator to provide the LIN Stack with the right clock.

Is this basically right?

Regards

Christof

0 项奖励
回复
2,135 次查看
namnguyenviet
NXP Employee
NXP Employee

Hello @christofhaiding ,

Yes, that's what I'm talking about. It's up to you to select either the Mcu driver code or your clock configuration code, just make sure that your Lin configuration has the correct clock frequency value according to the code generator. 

Best Regards,

Nam

0 项奖励
回复
2,222 次查看
namnguyenviet
NXP Employee
NXP Employee

Hello,

Yes, it's possible.

Best Regards,

Nam

0 项奖励
回复
2,218 次查看
christofhaiding
Contributor IV

Hello Nam!

Can you give me some advice how to do so?

Because it seams the the linstack is not working without any other AUTOSAR functions (LIN_43, MCU,..).
We would like to avoid them also.

 

Regards 
Christof

0 项奖励
回复