Dear All,
I'm using the I2C Master SDK example to communicate with Slave device : MAX17260, whose slave address is 0x36
While debugging the SDK, the debug enters main function but hangs or stops the debug with the LPI2C_MasterStart function.
I had checked the I2C clock which seems to be fine.
Pl guide us wrt this asap.
Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
To provide the fastest possible support, I'd highly recommend you use a logic analyzer to capture the I2C's signal, as it can help us to figure out the root cause.
Have a great day,
TIC
-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------
Hi,
Thanks for your reply.
After having a brief review of the screenshot, I don't think the I2C transmit is right, so I was wondering if you can share a schematic about connecting the MAX17260, meanwhile, please introduce what modification you did about the I2C Master SDK demo.
Have a great day,
TIC
-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------
Hi Jeremyzhou,
Thanks for the response.
PFA for the screenshot of our design details between MAX17260 and imxrt1050.
Below are the changes made -
1. SDA and SCL Pin planning: 100K Pull up, Drive Strength = R0/2
2. Slave Address: Tried with 0x6c as well as 0x36. (0x36 seems to be correct as per driver)
3. Whole code compiled for RAM (Flash removed from memory configuration). Because it results in hardfault when Flash is chosen as primary memory.
Kindly guide us wrt asap.
Thank you
Hi,
Thanks for your reply.
Firstly, according to the application note, it's okay to use the lpi2c master demo contact to MAX17260 after adapting the slave address and subAddress.
Next, the lpi2c master demo uses the GPIO_AD_B1_00 and GPIO_AD_B1_01 as the SCL and SDA, so it also needs to adapt the I2C's pin for your design.
Last, I'd highly recommend you use the logic analyzer to record the I2C transmit, as it can demonstrate the detail of the whole transmit process.
Have a great day,
TIC
-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------