we are using max30205 for temp monitoring. the slave is not responding pls. help.
we are using max30205 for temp monitoring. the slave is not responding pls. help.
The videos are not really giving me any information, I suggest you get access to a digital analyzer like the Saleae Logic Pro 8/16. It will translate the TWI communication into an easily readable form.
Your packet format is wrong, you're missing the 'pointer' byte. See Figure 3.a in https://datasheets.maximintegrated.com/en/ds/MAX30205.pdf.
Also you should not assume that 'm_set_mode_done' is true after a completed TWI transfer, you should verify by reading back the register value before setting the m_set_mode_done flag. Although the TWI bus relies on ACKs from the slave, it does not verify that the slave has received and responded to the data in the way that you want it to, it only ACKs when a byte has been successfully received.
PS:
Thanks for sharing a project that compiles out of the box <3
But we have sent the pointer byte in the code. Do you have the code for the same.If you have then can you please upload it. ?
Have you tried using 4 as length parameter?
Our receive buffer array length is 11 bytes. So ,if i put 4 as length, then code will go to the hard fault handler.
At what point do you get a hardfault?
at the tx or rx function. Not hard fault but similar like that. It stucks there.
I need error codes or any other form of debug information
I need error codes or any other form of debug information