I2C read and write using s32k144 MBD toolbox

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

I2C read and write using s32k144 MBD toolbox

1,173 Views
Sriram
Contributor IV

Hello,

I am using s32k144 to read and write data from an external EEPROM. I will attach the model below. I am able to write the data but the read returns 255+NACK as output. Am i missing something here

Sriram_0-1737789999186.png

Sriram_1-1737790013461.png

Is there a way to specify the register address of the EEPROM in the I2Cmaster block

Sriram_2-1737790096449.png

 

Can you guys help me out with this issue.
Thanks

Tags (2)
0 Kudos
Reply
2 Replies

61 Views
surya_ev
Contributor I

Hi,

I am also facing the same issue with I2C communication using the S32K144 as the master and the ST M24C04 EEPROM as the slave.

Since you are using the same microcontroller and EEPROM, I wanted to check whether you were able to find a solution. If you have resolved this issue, could you please share the solution or let me know what fixed it?

Thank you in advance for your help.

0 Kudos
Reply

1,157 Views
Sriram
Contributor IV

I m using M24C02-DRE EEPROM


0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2034165%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EI2C%20read%20and%20write%20using%20s32k144%20MBD%20toolbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2034165%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI%20am%20using%20s32k144%20to%20read%20and%20write%20data%20from%20an%20external%20EEPROM.%20I%20will%20attach%20the%20model%20below.%20I%20am%20able%20to%20write%20the%20data%20but%20the%20read%20returns%20255%2BNACK%20as%20output.%20Am%20i%20missing%20something%20here%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sriram_0-1737789999186.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Sriram_0-1737789999186.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F321336iBEF3AFD7D623D014%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Sriram_0-1737789999186.png%22%20alt%3D%22Sriram_0-1737789999186.png%22%20%2F%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ESriram_0-1737789999186.png%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%22Sriram_1-1737790013461.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Sriram_1-1737790013461.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F321337iF0DAB737CB1C9AAD%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Sriram_1-1737790013461.png%22%20alt%3D%22Sriram_1-1737790013461.png%22%20%2F%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ESriram_1-1737790013461.png%3C%2FSPAN%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3EIs%20there%20a%20way%20to%20specify%20the%20register%20address%20of%20the%20EEPROM%20in%20the%20I2Cmaster%20block%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sriram_2-1737790096449.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Sriram_2-1737790096449.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F321338iA43666A9842BE357%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Sriram_2-1737790096449.png%22%20alt%3D%22Sriram_2-1737790096449.png%22%20%2F%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ESriram_2-1737790096449.png%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ECan%20you%20guys%20help%20me%20out%20with%20this%20issue.%3CBR%20%2F%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2414199%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20I2C%20read%20and%20write%20using%20s32k144%20MBD%20toolbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2414199%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20am%20also%20facing%20the%20same%20issue%20with%20I2C%20communication%20using%20the%20%3CSTRONG%3ES32K144%3C%2FSTRONG%3E%20as%20the%20master%20and%20the%20%3CSTRONG%3EST%20M24C04%20EEPROM%3C%2FSTRONG%3E%20as%20the%20slave.%3C%2FP%3E%3CP%3ESince%20you%20are%20using%20the%20same%20microcontroller%20and%20EEPROM%2C%20I%20wanted%20to%20check%20whether%20you%20were%20able%20to%20find%20a%20solution.%20If%20you%20have%20resolved%20this%20issue%2C%20could%20you%20please%20share%20the%20solution%20or%20let%20me%20know%20what%20fixed%20it%3F%3C%2FP%3E%3CP%3EThank%20you%20in%20advance%20for%20your%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2034364%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20I2C%20read%20and%20write%20using%20s32k144%20MBD%20toolbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2034364%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20m%20using%26nbsp%3BM24C02-DRE%20EEPROM%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E