|
|
1 月之前 | |
|---|---|---|
| rp-test-pub @ | 1 月之前 | |
| Makefile | 1 月之前 | |
| README.md | 1 月之前 | |
| acquire_4ch_trigger_software.c | 1 月之前 | |
| acquire_signal_check.c | 1 月之前 | |
| acquire_trigger_posedge.c | 1 月之前 | |
| acquire_trigger_software.c | 1 月之前 | |
| analog_inputs.c | 1 月之前 | |
| analog_outputs.c | 1 月之前 | |
| axi | 1 月之前 | |
| axi.c | 1 月之前 | |
| axi_4ch.c | 1 月之前 | |
| axi_gen | 1 月之前 | |
| axi_gen.c | 1 月之前 | |
| axi_service | 1 月之前 | |
| axi_service] | 1 月之前 | |
| calibration_api.c | 1 月之前 | |
| can_loopback.c | 1 月之前 | |
| can_pass.c | 1 月之前 | |
| digital_led_bar.c | 1 月之前 | |
| digital_led_blink.c | 1 月之前 | |
| digital_push_button.c | 1 月之前 | |
| generate_arbitrary_waveform.c | 1 月之前 | |
| generate_burst_trigger_external.c | 1 月之前 | |
| generate_burst_trigger_software.c | 1 月之前 | |
| generate_continuous.c | 1 月之前 | |
| generate_two_burst_trigger_software.c | 1 月之前 | |
| generate_two_trigger_software_sync.c | 1 月之前 | |
| i2c.c | 1 月之前 | |
| i2c_eeprom_read_calib.c | 1 月之前 | |
| i2c_switch_max7311.c | 1 月之前 | |
| period | 1 月之前 | |
| rp.tar | 1 月之前 | |
| rp_client.py | 1 月之前 | |
| spi.c | 1 月之前 | |
| spi_loopback.c | 1 月之前 | |
| test_e_module.c | 1 月之前 | |
| uart.c | 1 月之前 | |
| uart_loopback.c | 1 月之前 |
When compiling on the target no special preparations are needed. A native toolchain is available directly on the Debian system.
First connect to your board over SSH (replace the IP, the default password is root).
ssh root@192.168.0.100
Now on the target, make a clone of the Red Pitaya Git repository and enter the project directory.
git clone https://github.com/RedPitaya/RedPitaya.git
cd RedPitaya
To compile one example just use the source file name without the .c extension.
cd Examples/C
make digital_led_blink
cd Examples/C
make acquire_signal_check
Applications based on the API require a specific FPGA image to be loaded:
overlay.sh v0.94
Execute the application. The path to Red Pitaya shared libraries must be provided explicitly. Some applications run in a continuous loop, press CTRL+C to stop them.
LD_LIBRARY_PATH=/opt/redpitaya/lib ./digital_led_blink