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
Solved! Go to Solution.
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).
As for the printf functionallity, you will need to select "newlib Semihosting" and enable semihosting in the debugger configuration:
After this, you should be able to see the message printed in the P&E Semihosting Console:
You can also take a look into this LPUART implementation from community:
Best regards,
Julián
Hi @santhosh23,
You can refer to the S32K1xx LIN STACK 1.0.2 Example Projects.
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
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 ?
I will be looking forward for your response.
Best regards,
santhosh
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).
As for the printf functionallity, you will need to select "newlib Semihosting" and enable semihosting in the debugger configuration:
After this, you should be able to see the message printed in the P&E Semihosting Console:
You can also take a look into this LPUART implementation from community:
Best regards,
Julián
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.
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?
Best regards,
santhosh
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.
Best regards,
Julián