Hi Sharom Tovar,
I suggest you use the MCXPresso IDE instead of the KDS.
KDS IDE is the old one, the MCUXresso IDE is the new IDE.
About the I2C code, please refer to the SDK code which I recommend you, about the address, do you mean the slave I2C address?
You can refer to FRDM0KL46 sdk code:
SDK_2.4.1_FRDM-KL46Z\boards\frdmkl46z\driver_examples\i2c\read_accel_value_transfer\iar
This project is using the I2C to communicate with the external acceleration sensor.
You can put the i2c slave address in masterXfer.slaveAddress;
Wish it helps you!
You can try it, and check the I2C bus data.
If you still have question about it, please kindly let me know.
Have a great day,
Kerry
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------