Forum Discussion
I was able to figure out the way to control the HPS GPIO using the GPIO controllers. HPS_LTC_GPIO is at GPIO40 and HPS_LED is at GPIO53.
GPIO[57:29] are controlled by GPIO1 Controller. Below is the address map for the GPIO controllers:
I wrote a C program to be able to control the LED and set the HPS_LTC_GPIO to low. The code works for blinking the HPS LED. It should also work for the HPS_LTC_GPIO and I should be able to access the I2C bus on the LTC Connector, however, the HPS still communicates with the Gsensor.
Could you suggest what other things I could try?
I have attached my code to this message.
- KianHinT_altera1 month ago
Frequent Contributor
Sorry for the delay in responding back, is it possible for you to probe the physical HPS_LTC_GPIO/GPIO40 to see whether it toggles when your code set the pin to low to confirm whether it is switching (via multimeter ?)
How about the I2C2 pin mux settings? Pins are assigned to HPS ?
Did a search on past topics and looks like there is some discussion on the clock , see whether is it similar issue
https://community.altera.com/discussions/fpga-device/how-change-i2c-clock-on-cyclone-v-hps--terasic-de10-nano/266788
Thanks
Regards
Kian
- greenlantern011 month ago
Occasional Contributor
Hello Kian,
Thanks for sharing this information. I will work on it and give an update on this.
Regards