The purpose of this article is to cross-compile a demo for the ARM in the HPS of the DE-25 FPGA Dev Kit
Please refer to the previous article Part 6 where the ARM Cross Compiler was installed in a Linux host before proceeding with this article. Make sure all the files from the SoC directory are present from the examples in the SoC of the resources CD from Part 1. In this case we will be covering the hps_gsensor,
with these files,
ADXL345.c ADXL345.h Makefile main.c
In order to cross-compile this demo please proceed with the following command,
digikey_coffee_cup: ~$ export CROSS_COMPILE=aarch64-none-linux-gnu-
Now proceed with make as shown next,
digikey_coffee_cup: ~$ make
In order to run this ARM executable in the HPS in the DE-25 FPGA Dev Kit, proceed to copy the hps_led_key ARM binary to the DE-25 FPGA Dev Kit from the Linux host via SSH the WiFi Router as outlined in a previous article Part 5. The following scp command copies the file from the Linux host to the DE-25 HPS via SSH (Please change the IP address and path as needed),
digikey_coffee_cup: ~$ scp gsensor terasic@192.168.1.131:/home/terasic/SoC/hps_gsensor
Execute the ARM binary in the DE-25 HPS from the SSH or PuTTY terminal connection as desired,
The ADXL345 accelerometer was properly read from the I2C interface connected to the HPS in the DE-25 FPGA Dev Kit. This completes this demo of the HPS and the accelerometer.
The DE-25 FPGA Dev Kit is a powerful platform featuring an HPS/FPGA Agilex 5 (available as D-Series and E-Series depending on the case) capable of implementing Tensor AI slices,
that go beyond what traditional/classical old school DSP slices implemented in the past,
and it is available at DigiKey.
Have a wonderful day!




