Forum Discussion
Altera_Forum
Honored Contributor
10 years agoAccording to the block diagram of the board, the G-Sensor is attached to the HPS/ARM side of the SoC. You will need to write your code for the ARM. If your code is small enough, you can add it to the preloader. If not, you can have the preloader load it for you. I.E. your code replaces the uboot that loads Linux. You can find information on the HPS I2C controller in volume 3 of the cyclone 5 handbook. Register info is available on the same page as the handbook download.