HI Cutworth,
Thanks a lot for your remind. Yes, you are right. But I don't study the accelerometer chip data sheet, I just supposed that at least one or two of 32 bytes should be same, also the example that NXP provide have the code to compare write and read data, my understanding is that they should be same, to say that what you wrote into EEPROM are reading correctly by reading. You means that I2C polling_transfer example of V2.0 SDK example code for FRDM-K22F I2C0 master wirte/Read data are not same?
Also I found that I2C_MASTER_SLAVE_ADDR_7BIT is 0x7EU in origin code, but the address is 0x1C in the FRDM-K22F schematic, which address I should use? How to define the I2C_MASTER_SLAVE_ADDR_7BIT(masterXfer.slaveAddress) address?
masterXfer.subaddress = 0; masterXfer.subaddressSize = 0; means what?
Actually I don't want to read accelerometer, just want to write/read I2C E2PROM in my board. Just want to refer any kintis I2C write/reading example. In a word, do you have any example can realize I2C write and reading content same using K22F chip?
Sorry to so many question because I am new for Kinetis chip and SDK.
Best Regards,
Kent