Forum Discussion
Altera_Forum
Honored Contributor
10 years agoDE0-Nano-SoC G-Sensor without Linux
My intention is to make a level sensor using to LEDs and the G-Sensor on the DE0-Nano-SoC. When I tilt my board to the left, the LEDs towards the left should glow and so on. I want to use the G...
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.