Forum Discussion
Inematov
New Contributor
6 years agoHi all I am using the i2C IP Core. In NIOS i would like to get data from an Bosch BME280.
Now i get (console output) always the same value, nothing changes.. Also not if i try to get data from other geisters. So i believe i do something wrong, but i don`t know what.. or where to start sea...
AnandRaj_S_Intel
Regular Contributor
6 years agoHi Roman,
Okay,
For debugging can you try to read slave device address using alt_avalon_i2c_master_target_get.
Refer below link for API example.
https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/ug/ug_embedded_ip.pdf
Regards
Anand
Inematov
New Contributor
6 years agoHi Anand
With the code in the attachment i get the following output:
Hello from Nios II!
targetadress 0x0
Error
Read chip ID: Read chip ID: Read chip ID: Read chip ID: Read chip ID: Data
Data
Data
Data
so it seems he even do not set the target address 0x76.
When i use the oscilloscope, there is no communication on the pins.
Thank you!
Regards
Roman