-
Notifications
You must be signed in to change notification settings - Fork 7
4Testing
Gwenhael Goavec-Merou edited this page Mar 2, 2021
·
4 revisions
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/
Here, we will use the double_dds application.
cd oscimpDigital/app/redpitaya/double_dds
cd design
make
make install
Note: Do NOT use make -j [N]
argument (#1).
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
ssh [email protected]
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.