NXP S32K312EVB I2C Example not working

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

NXP S32K312EVB I2C Example not working

Jump to solution
2,038 Views
beginner100
Contributor II

I am using an NXP S32K312 EVB with Simulink NXP MBDT Example - s32k3xx_i2c_async_s32ct.slx

beginner100_3-1753108784095.png

I made sure to follow instructions - these pins are connected

beginner100_0-1753108540123.png

beginner100_1-1753108599034.png

Looking at the last instruction, I checked the schematics of the EVB and it seems they have pullup resistors already, I was able to locate them on board as well. All jumpers are connected as mentioned in  S32K312EVB-Q172 - Hardware User Manual.

beginner100_2-1753108698764.png

 

Build and flash - no issues observed.

When I run FreeMASTER, I see no change on "slave_send" variable being changed at all. Does it something have to do with interrupt in this case, please confirm. I suspect this because, this is what increments the "slave_send" variable. Please let me know the steps to enable it. Attached is the .mex

 

beginner100_4-1753108864297.png

beginner100_5-1753108928674.png

#s32k3 #s32k312 #i2c #mbdt 

 

 

 

 

 

 

 

0 Kudos
Reply
1 Solution
1,823 Views
stefanvlad
NXP Employee
NXP Employee

Hi @beginner100 

 

Can you provide a picture of your setup with the S32K312EVB-Q172 and the connections?

Just to be sure, have you connected the Pull-up resistors for pins PTD14 and PTD13 as in the picture below? 

stefanvlad_0-1753776951488.png

Just in case I have attached the s32k311_i2c_async_s32ct.zip that I have tested and it works on my S32K312EVB-Q172.

 

Please test it and send me all details and pictures,

Stefan V.

 

View solution in original post

0 Kudos
Reply
6 Replies
1,750 Views
beginner100
Contributor II

Hello @stefanvlad

One more question on the same example and it's this event "I2C_SLAVE_EVENT_TX_REQ" within Hardware Interrupt Callback (MBDT_I2C_Callback)

Why is the Event output being compared to 5 ?  Is I2C_EVENT_TX_REQ_SLAVE defined as 5? Where can I find this configuration in the S32CT tool? What other events are available and can you please explain and help me understand this better, thank you!

 

beginner100_1-1753906127597.png

 

beginner100_0-1753906097035.png

beginner100_3-1753906178842.png

 

 

 

 

0 Kudos
Reply
1,444 Views
stefanvlad
NXP Employee
NXP Employee

Hi @beginner100 ,

 

There is a structure defined in the Lpi2c_Ip_Callbacks.h:

/**
* @brief Define the enum of the events which can trigger I2C slave callback
*
* This enum should include the events for all platforms
* implements Lpi2c_Ip_SlaveEventType_enum
*/
typedef enum
{
I2C_SLAVE_EVENT_ERROR_BIT = 0x00U,
I2C_SLAVE_EVENT_UNDERRUN = 0x01U,
I2C_SLAVE_EVENT_OVERRUN = 0x02U,
I2C_SLAVE_EVENT_RX_FULL = 0x03U,
I2C_SLAVE_EVENT_TX_EMPTY = 0x04U,
I2C_SLAVE_EVENT_TX_REQ = 0x05U,
I2C_SLAVE_EVENT_RX_REQ = 0x06U,
I2C_SLAVE_EVENT_STOP = 0x07U,
I2C_SLAVE_EVENT_DMA_TRANSFER_ERROR = 0x0EU
}Lpi2c_Ip_SlaveEventType;

 

To open the S32 Configuration Tools, you need to select an NXP block, and press Configure:

Screenshot 2025-08-27 183548.png

Then when S32CT is opened, you can go to Platform in the Interrupt Controller, to locate the LPI2C0_Master_Slave_IRQHandler:

Platform Configuration Interrupt Controller.png

 

Best regards,

Stefan V.

1,818 Views
beginner100
Contributor II

I have used the model from the .zip shared, and now it seems to be working fine. Yes, I have also connected the resistors as you mentioned. 

0 Kudos
Reply
1,824 Views
stefanvlad
NXP Employee
NXP Employee

Hi @beginner100 

 

Can you provide a picture of your setup with the S32K312EVB-Q172 and the connections?

Just to be sure, have you connected the Pull-up resistors for pins PTD14 and PTD13 as in the picture below? 

stefanvlad_0-1753776951488.png

Just in case I have attached the s32k311_i2c_async_s32ct.zip that I have tested and it works on my S32K312EVB-Q172.

 

Please test it and send me all details and pictures,

Stefan V.

 

0 Kudos
Reply
1,947 Views
stefanvlad
NXP Employee
NXP Employee

Hi @beginner100 ,

 

Thank you for using MBDT for S32K3 with the S32K312EVB-Q172 evaluation board,

In the case of the s32k3xx_i2c_async_s32ct example, the table below describes the connections between the I2C instances on S32K312-Q172:

stefanvlad_0-1753361694612.png

But in that help file, there is also a Note below that reads:

  • Note: When running this model on S32K311EVB-Q100S32K312EVB-Q172 or S32K388EVB-Q289, please note that the signal lines used for the I2C transmission require external 2k Ohm pull-up resistors between SDA and VDD and SCL and VDD. For VDD, you can use the pin J40.9 for S32K311EVB-Q100, J39.13 for S32K312EVB-Q172 or J696.14 for S32K388EVB-Q289.

Because the other I2C Instance has pins PTD13, PTD14 with no pull-up resistors, you need to add those, and connect them, one example is in the picture below:

28517079-5330-4964-82fe-1140c4095f20.jpg

I have created a simplified version of the schematic showing only the I2C connections needed with pull-up resistors:

stefanvlad_0-1753365638245.png

 

After you make all the connections , then you can open FreeMASTER and take a look at variables:

stefanvlad_1-1753362044213.png

Both of them will increment accordingly and go up to 256 then roll back to 0.

 

Hope this helps you with the setup,

Best regards,

Stefan V.

 

0 Kudos
Reply
1,843 Views
beginner100
Contributor II
Thank you for the input, @stefanvlad.

I did make changes as suggested, on FreeMASTER i only see Slave_send as 0 and master_recv as 255. I do not see any ramp up or incrementing of values. Are there any other set of pins that can be chosen as the slave I2C Instance instead of PTD13, PTD14?
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2137529%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ENXP%20S32K312EVB%20I2C%20Example%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2137529%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20using%20an%20NXP%20S32K312%20EVB%20with%20Simulink%20NXP%20MBDT%20Example%20-%20s32k3xx_i2c_async_s32ct.slx%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22beginner100_3-1753108784095.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22beginner100_3-1753108784095.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F348582iE6D98B2E2CAA5CB3%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22beginner100_3-1753108784095.png%22%20alt%3D%22beginner100_3-1753108784095.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20made%20sure%20to%20follow%20instructions%20-%20these%20pins%20are%20connected%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22beginner100_0-1753108540123.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22beginner100_0-1753108540123.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F348578i0F468813F3F4C67B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22beginner100_0-1753108540123.png%22%20alt%3D%22beginner100_0-1753108540123.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22beginner100_1-1753108599034.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22beginner100_1-1753108599034.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F348579iF2796476A8146300%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22beginner100_1-1753108599034.png%22%20alt%3D%22beginner100_1-1753108599034.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ELooking%20at%20the%20last%20instruction%2C%20I%20checked%20the%20schematics%20of%20the%20EVB%20and%20it%20seems%20they%20have%20pullup%20resistors%20already%2C%20I%20was%20able%20to%20locate%20them%20on%20board%20as%20well.%20All%20jumpers%20are%20connected%20as%20mentioned%20in%26nbsp%3B%26nbsp%3BS32K312EVB-Q172%20-%20Hardware%20User%20Manual.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22beginner100_2-1753108698764.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22beginner100_2-1753108698764.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F348580i6A0BD40B099FDF97%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22beginner100_2-1753108698764.png%22%20alt%3D%22beginner100_2-1753108698764.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EBuild%20and%20flash%20-%20no%20issues%20observed.%3C%2FP%3E%3CP%3EWhen%20I%20run%20FreeMASTER%2C%20I%20see%20no%20change%20on%20%22slave_send%22%20variable%20being%20changed%20at%20all.%20Does%20it%20something%20have%20to%20do%20with%20interrupt%20in%20this%20case%2C%20please%20confirm.%20I%20suspect%20this%20because%2C%20this%20is%20what%20increments%20the%20%22slave_send%22%20variable.%20Please%20let%20me%20know%20the%20steps%20to%20enable%20it.%20Attached%20is%20the%20.mex%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22beginner100_4-1753108864297.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22beginner100_4-1753108864297.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F348584iC5844304E2886FEB%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22beginner100_4-1753108864297.png%22%20alt%3D%22beginner100_4-1753108864297.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22beginner100_5-1753108928674.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22beginner100_5-1753108928674.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F348585i130A866DF2069434%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22beginner100_5-1753108928674.png%22%20alt%3D%22beginner100_5-1753108928674.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%23s32k3%20%23s32k312%20%23i2c%20%23mbdt%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2159287%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20NXP%20S32K312EVB%20I2C%20Example%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2159287%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F251278%22%20target%3D%22_blank%22%3E%40beginner100%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThere%20is%20a%20structure%20defined%20in%20the%26nbsp%3BLpi2c_Ip_Callbacks.h%3A%3C%2FP%3E%0A%3CP%3E%2F**%3CBR%20%2F%3E*%20%40brief%20Define%20the%20enum%20of%20the%20events%20which%20can%20trigger%20I2C%20slave%20callback%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20This%20enum%20should%20include%20the%20events%20for%20all%20platforms%3CBR%20%2F%3E*%20implements%20Lpi2c_Ip_SlaveEventType_enum%3CBR%20%2F%3E*%2F%3CBR%20%2F%3Etypedef%20enum%3CBR%20%2F%3E%7B%3CBR%20%2F%3EI2C_SLAVE_EVENT_ERROR_BIT%20%3D%200x00U%2C%3CBR%20%2F%3EI2C_SLAVE_EVENT_UNDERRUN%20%3D%200x01U%2C%3CBR%20%2F%3EI2C_SLAVE_EVENT_OVERRUN%20%3D%200x02U%2C%3CBR%20%2F%3EI2C_SLAVE_EVENT_RX_FULL%20%3D%200x03U%2C%3CBR%20%2F%3EI2C_SLAVE_EVENT_TX_EMPTY%20%3D%200x04U%2C%3CBR%20%2F%3E%3CSTRONG%3EI2C_SLAVE_EVENT_TX_REQ%3C%2FSTRONG%3E%20%3D%20%3CSTRONG%3E0x05U%3C%2FSTRONG%3E%2C%3CBR%20%2F%3EI2C_SLAVE_EVENT_RX_REQ%20%3D%200x06U%2C%3CBR%20%2F%3EI2C_SLAVE_EVENT_STOP%20%3D%200x07U%2C%3CBR%20%2F%3EI2C_SLAVE_EVENT_DMA_TRANSFER_ERROR%20%3D%200x0EU%3CBR%20%2F%3E%7DLpi2c_Ip_SlaveEventType%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ETo%20open%20the%20S32%20Configuration%20Tools%2C%20you%20need%20to%20select%20an%20NXP%20block%2C%20and%20press%20Configure%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202025-08-27%20183548.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202025-08-27%20183548.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F354407i2CC50A5E82D0FB2A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screenshot%202025-08-27%20183548.png%22%20alt%3D%22Screenshot%202025-08-27%20183548.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThen%20when%20S32CT%20is%20opened%2C%20you%20can%20go%20to%20Platform%20in%20the%20Interrupt%20Controller%2C%20to%20locate%20the%20LPI2C0_Master_Slave_IRQHandler%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Platform%20Configuration%20Interrupt%20Controller.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Platform%20Configuration%20Interrupt%20Controller.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F354408iA5E42AE89C6B9241%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Platform%20Configuration%20Interrupt%20Controller.png%22%20alt%3D%22Platform%20Configuration%20Interrupt%20Controller.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EStefan%20V.%3C%2FP%3E%0A%3CP%3E%E2%80%83%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2143870%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20NXP%20S32K312EVB%20I2C%20Example%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2143870%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F203341%22%20target%3D%22_blank%22%3E%40stefanvlad%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EOne%20more%20question%20on%20the%20same%20example%20and%20it's%20this%20event%20%22I2C_SLAVE_EVENT_TX_REQ%22%20within%20Hardware%20Interrupt%20Callback%20(MBDT_I2C_Callback)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EWhy%20is%20the%20Event%20output%20being%20compared%20to%205%20%3F%26nbsp%3B%20Is%20I2C_EVENT_TX_REQ_SLAVE%20defined%20as%205%3F%20Where%20can%20I%20find%20this%20configuration%20in%20the%20S32CT%20tool%3F%20What%20other%20events%20are%20available%20and%20can%20you%20please%20explain%20and%20help%20me%20understand%20this%20better%2C%20thank%20you!%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22beginner100_1-1753906127597.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22beginner100_1-1753906127597.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F350320i4E58F2AB6C274457%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22beginner100_1-1753906127597.png%22%20alt%3D%22beginner100_1-1753906127597.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22beginner100_0-1753906097035.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22beginner100_0-1753906097035.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F350319i7FB67EB797AFC607%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22beginner100_0-1753906097035.png%22%20alt%3D%22beginner100_0-1753906097035.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22beginner100_3-1753906178842.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22beginner100_3-1753906178842.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F350322iD5F447B8060BEF6A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22beginner100_3-1753906178842.png%22%20alt%3D%22beginner100_3-1753906178842.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2142929%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20NXP%20S32K312EVB%20I2C%20Example%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2142929%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20used%20the%20model%20from%20the%20.zip%20shared%2C%20and%20now%20it%20seems%20to%20be%20working%20fine.%20Yes%2C%20I%20have%20also%20connected%20the%20resistors%20as%20you%20mentioned.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2142513%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20NXP%20S32K312EVB%20I2C%20Example%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2142513%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F251278%22%20target%3D%22_blank%22%3E%40beginner100%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ECan%20you%20provide%20a%20picture%20of%20your%20setup%20with%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ES32K312EVB-Q172%20%3C%2FSTRONG%3Eand%20the%20connections%3F%3C%2FP%3E%0A%3CP%3EJust%20to%20be%20sure%2C%20have%20you%20connected%20the%20Pull-up%20resistors%20for%20pins%20PTD14%20and%20PTD13%20as%20in%20the%20picture%20below%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stefanvlad_0-1753776951488.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_0-1753776951488.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F349953i1E61D4E9B605CC0E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22stefanvlad_0-1753776951488.png%22%20alt%3D%22stefanvlad_0-1753776951488.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EJust%20in%20case%20I%20have%20attached%20the%26nbsp%3Bs32k311_i2c_async_s32ct.zip%20that%20I%20have%20tested%20and%20it%20works%20on%20my%26nbsp%3B%3CSTRONG%3ES32K312EVB-Q172.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EPlease%20test%20it%20and%20send%20me%20all%20details%20and%20pictures%2C%3C%2FP%3E%0A%3CP%3EStefan%20V.%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2142012%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20NXP%20S32K312EVB%20I2C%20Example%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2142012%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThank%20you%20for%20the%20input%2C%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F203341%22%20target%3D%22_blank%22%3E%40stefanvlad%3C%2FA%3E.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20did%20make%20changes%20as%20suggested%2C%20on%20FreeMASTER%20i%20only%20see%20Slave_send%20as%200%20and%20master_recv%20as%20255.%20I%20do%20not%20see%20any%20ramp%20up%20or%20incrementing%20of%20values.%20Are%20there%20any%20other%20set%20of%20pins%20that%20can%20be%20chosen%20as%20the%20slave%20I2C%20Instance%20instead%20of%20PTD13%2C%20PTD14%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2140183%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20NXP%20S32K312EVB%20I2C%20Example%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2140183%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F251278%22%20target%3D%22_blank%22%3E%40beginner100%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThank%20you%20for%20using%20MBDT%20for%20S32K3%20with%20the%20S32K312EVB-Q172%20evaluation%20board%2C%3C%2FP%3E%0A%3CP%3EIn%20the%20case%20of%20the%20%3CSTRONG%3Es32k3xx_i2c_async_s32ct%3C%2FSTRONG%3E%20example%2C%20the%20table%20below%20describes%20the%20connections%20between%20the%20I2C%20instances%20on%20S32K312-Q172%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stefanvlad_0-1753361694612.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_0-1753361694612.png%22%20style%3D%22width%3A%20545px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F349337iD546D564BC7357FE%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stefanvlad_0-1753361694612.png%22%20alt%3D%22stefanvlad_0-1753361694612.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBut%20in%20that%20help%20file%2C%20there%20is%20also%20a%20%3CSTRONG%3ENote%3C%2FSTRONG%3E%20below%20that%20reads%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%3ENote%3A%20When%20running%20this%20model%20on%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ES32K311EVB-Q100%3C%2FSTRONG%3E%3CSPAN%3E%2C%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ES32K312EVB-Q172%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3Bor%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ES32K388EVB-Q289%3C%2FSTRONG%3E%3CSPAN%3E%3CSPAN%3E%2C%20please%20note%20that%20the%20signal%20lines%20used%20for%20the%20I2C%20transmission%20require%20external%202k%20Ohm%20pull-up%20resistors%20between%20SDA%20and%20VDD%20and%20SCL%20and%20VDD.%20For%20VDD%2C%20you%20can%20use%20t%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%3Ehe%20pin%20J40.9%20for%20S32K311EVB-Q100%2C%20J39.13%20for%20S32K312EVB-Q172%20or%20J696.14%20for%20S32K388EVB-Q289.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%3EBecause%20the%20other%20I2C%20Instance%20has%20pins%20PTD13%2C%20PTD14%20with%20no%20pull-up%20resistors%2C%20you%20need%20to%20add%20those%2C%20and%20connect%20them%2C%20one%20example%20is%20in%20the%20picture%20below%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%E2%80%83%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2228517079-5330-4964-82fe-1140c4095f20.jpg%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%2228517079-5330-4964-82fe-1140c4095f20.jpg%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F349339i88A2FE9A98A72A9A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%2228517079-5330-4964-82fe-1140c4095f20.jpg%22%20alt%3D%2228517079-5330-4964-82fe-1140c4095f20.jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EI%20have%20created%20a%20simplified%20version%20of%20the%20schematic%20showing%20only%20the%20I2C%20connections%20needed%20with%20pull-up%20resistors%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stefanvlad_0-1753365638245.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_0-1753365638245.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F349348i5B5CD322B22CC3CF%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stefanvlad_0-1753365638245.png%22%20alt%3D%22stefanvlad_0-1753365638245.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EAfter%20you%20make%20all%20the%20connections%20%2C%20then%20you%20can%20open%20FreeMASTER%20and%20take%20a%20look%20at%20variables%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stefanvlad_1-1753362044213.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_1-1753362044213.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F349340i0AC375C0548DDFFF%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stefanvlad_1-1753362044213.png%22%20alt%3D%22stefanvlad_1-1753362044213.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBoth%20of%20them%20will%20increment%20accordingly%20and%20go%20up%20to%20256%20then%20roll%20back%20to%200.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EHope%20this%20helps%20you%20with%20the%20setup%2C%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EStefan%20V.%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E