Skip to content

4Testing

Gwenhael Goavec-Merou edited this page Mar 2, 2021 · 4 revisions

Testing OscimpDigital on the Redpitaya STEM-125 14

Add Python wrapper to the buildroot overlay:

mkdir -p ~/git/redpitaya/board/redpitaya/overlay/usr/lib/python3.7/site-packages/
cp liboscimp_fpga.py ~/git/redpitaya/board/redpitaya/overlay/usr/lib/python3.7/site-packages/

Create your first application

Here, we will use the double_dds application.

cd oscimpDigital/app/redpitaya/double_dds

Bitstream

cd design
make
make install

Note: Do NOT use make -j [N] argument (#1).

Linux application

cd ../app

A main.c application is not mandatory but compiled if present. Here a HelloWorld if you want to have fun with cross-compilation:

#include <stdio.h>
int main() {
   printf("Hello from Redpitaya!\n");
   return 0;
}
redpitaya> ./double_dds_us.sh 

make
make install
make install_webserver

Run it on redpitaya

ssh root@192.168.0.10
mount /usr/local
cd /usr/local/redpitaya/double_dds/bin
./double_dds_us.sh
./double_dds_webserver.py &

A blue LED should be on when the FPGA is flashed. Start a web browser and connect to http://192.168.0.10/

You can move the sliders or set values in spinbox, save your current config, or reload it after reboot.

Enjoy.