Configuration for s32k116 with ldf file

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Configuration for s32k116 with ldf file

Jump to solution
603 Views
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 Kudos
Reply
1 Solution
535 Views
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

 

View solution in original post

0 Kudos
Reply
5 Replies
582 Views
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 Kudos
Reply
564 Views
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 Kudos
Reply
536 Views
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 Kudos
Reply
512 Views
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 Kudos
Reply
499 Views
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 Kudos
Reply