Configuration for s32k116 with ldf file

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

Configuration for s32k116 with ldf file

跳至解决方案
1,407 次查看
santhosh23
Contributor III

I have master node which can send 2 signals with frame id 0x30 and would like to configure s32116 evb as slave node. 
In my case, when I send a signal with frame id 0x30 as 0x01 0xff 0xff 0xff. any one of the gpio pin should be High(led should glow) or when the signal wih frame id 0x30 as 0x00 0xff 0xff 0xff is sent, the same gpio configured with led should go low. 
Any suggestions or simple examples related to this are highly appreciated.

Thanks in advance!

Thanks & regards,
Santhosh

0 项奖励
回复
1 解答
1,339 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @santhosh23,

Please access the Flexera portal and go into "Automotive SW - S32K1 Reference Software > Automotive SW - S32K1_S32M24X - LIN Stacks" and select the updatesite.zip LIN Stack for S32K1. Keep in mind you also need the RTD package for S32K1, see Getting Started with the Real-Time Drivers (RTD).

Julin_AragnM_0-1721240901601.png

Julin_AragnM_1-1721241044983.png

As for the printf functionallity, you will need to select "newlib Semihosting" and enable semihosting in the debugger configuration:

Julin_AragnM_4-1721242662909.png

Julin_AragnM_5-1721242702543.png

After this, you should be able to see the message printed in the P&E Semihosting Console:

Julin_AragnM_6-1721242770884.png

You can also take a look into this LPUART implementation from community:

Best regards,
Julián

 

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,386 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @santhosh23,

You can refer to the S32K1xx LIN STACK 1.0.2 Example Projects.

Julin_AragnM_0-1721154950954.png

There are no S32K116 examples readily available, but you can just copy over the configuration. The example describes LIN communication between S32K1XX Slave and other board Master using unconditional frames.

You can look at the "description.txt" for more information.

These examples include an LDF file in the "src" folder as the one I've attached.

Best regards,
Julián

0 项奖励
回复
1,368 次查看
santhosh23
Contributor III

santhosh23_0-1721210352602.png

I am not able to see that example solution in my window. Could you please tell me how to include that example in my folder? 
Also, Could you please let me know how to use printf in s32 Design studio for ARM?
Where can I see the output printed ?

santhosh23_1-1721210823921.png

I will be looking forward for your response.



Best regards,
santhosh

0 项奖励
回复
1,340 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @santhosh23,

Please access the Flexera portal and go into "Automotive SW - S32K1 Reference Software > Automotive SW - S32K1_S32M24X - LIN Stacks" and select the updatesite.zip LIN Stack for S32K1. Keep in mind you also need the RTD package for S32K1, see Getting Started with the Real-Time Drivers (RTD).

Julin_AragnM_0-1721240901601.png

Julin_AragnM_1-1721241044983.png

As for the printf functionallity, you will need to select "newlib Semihosting" and enable semihosting in the debugger configuration:

Julin_AragnM_4-1721242662909.png

Julin_AragnM_5-1721242702543.png

After this, you should be able to see the message printed in the P&E Semihosting Console:

Julin_AragnM_6-1721242770884.png

You can also take a look into this LPUART implementation from community:

Best regards,
Julián

 

0 项奖励
回复
1,316 次查看
santhosh23
Contributor III

Thank you @Julián_AragónM for your quick response!
I tried to access the Flexera portal, but couldn't succeed. It is showing that I've already requested evaluation version for this product. As per my knowledge, I did not requested this product before. 

santhosh23_0-1721288806414.png

And regarding printf, I can't see newlib Semihosting option on my screen
For your kind information i am using S32DS_ARM_v2018.R1 software version. 
Do you think this is because of software version or is there anything else i am missing out?

santhosh23_1-1721292133328.png

Best regards,
santhosh

 

0 项奖励
回复
1,303 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @santhosh23,

Could you try searching for the LIN package with "Product Search" as "SW32K1 SW32M24X LIN Stack version 1.0.2"? Also, keep in mind that this package is only compatible with S32 Design Studio v3.5.

I'm not sure since the software is relatively old, please look at the community post: Example S32K_printf_implementation - S32DS_1.0 - NXP Community. It uses the ewl library instead of newlib.

Julin_AragnM_1-1721322766195.png

Best regards,
Julián

0 项奖励
回复