Hi Community,
I am working on S32K118, I want to read the status of each pins of every port ('1' or '0'), I used PINS_DRV_READPINS function, but I am not getting the required result, can you please help me with this. I am attaching the part of the code as reference, kindly let me know where I am getting it wrong. I want to print the value returned by this function on the console.
Thank You
Hi Abhinandan,
for reference, you can take a look at this SW example:
c:\NXP\S32DS.3.4\S32DS\software\S32SDK_S32K1XX_RTM_4.0.2\examples\S32K118\driver_examples\system\crc_checksum\
Did you configure that pin as input? For example from the project mentioned above:
Did you call init function like this?
/* Initialize pins */
PINS_DRV_Init(NUM_OF_CONFIGURED_PINS0, g_pin_mux_InitConfigArr0);
Regards,
Lukas
Hi @lukaszadrapa ,
Thank You for your time in replying to my query, I am unable to access the link which you mentioned, can please resend me the link.
Thank You
You need to have S32 Design Studio 3.4 installed:
https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=S32DS-3-4
Then select:
Update the SDK package to version RTM 4.0.2:
And then you will find the example(s) at mentioned folder on c:\ drive.
Regards,
Lukas