Other Parts Discussed in Thread: HDC2010
Hi, i am studying with I2C and HDC2080. And I'm using stm32f030c6t, but i can not understand how to do this. I also read datasheet. And here is my example. Where am i doing wrong?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi, i am studying with I2C and HDC2080. And I'm using stm32f030c6t, but i can not understand how to do this. I also read datasheet. And here is my example. Where am i doing wrong?
Thank you for your post and welcome to the E2E forums.
Are you basing this code off an example for your MCU that you found?
Also, can you share a schematic, and capture your I2C lines on a oscilloscope or logic analyzer to make sure that there is activity on them.
Best Regards,
Brandon Fisher
Hi Muhammet,
Muhammet TAN said:Yes, i have tried logic analyzer but there is always 0xFF
Your schematic looks correct. Are you seeing any activity on the I2C lines when you look on the logic analyzer, even from the master?
It is one thing to see the HDC2080 return 0xFF, it is another if you are just seeing that the lines are always high. If you aren't seeing anything, you may have to seek support/examples for your stm32f030c6t to see how to use the I2C peripheral for this device.
Best Regards,
Brandon Fisher
"Are you seeing any activity on the I2C lines when you look on the logic analyzer, even from the master?"
No, there isn't any activity. I tried many things but still not seeing any activity. And I will continue trying different method.I hope I will reach the result.
Thank you for reply.
Hi Muhammet,
I'm not familiar enough with ST's MCUs to say with certainty what the problem in your code may be. Although, I don't see where you are initializing an I2C peripheral.
Are you working off of an I2C example from ST? That would probably be the most helpful place to start.
Best Regards,
Brandon Fisher
Dear Muhammet - closing this post due to inactivity - you can reply with response to Brandon to re-open
Hi Muhammet,
Can you share your main function?
You may actually have an easier time if you try to communicate with the HDC2010 without re-purposing the code from the Arduino library. Try focusing on implementing the below operations just to see if you can get something out of the STM32F. Ignore the optional steps for now.
Best Regards,
Brandon Fisher