Page 1 of 1

trouble with C API example program

Posted: Sun Feb 06, 2022 4:42 pm
by Soichgoschn
Hello everybody,

I am trying to get the C api running as described in this link: https://redpitaya.readthedocs.io/en/lat ... /comC.html
Trying to compile the digital_led_blink Example using the

Code: Select all

cd Examples/C

Code: Select all

make digital_led_blink
commands returns following error message:
cc -g -std=gnu11 -Wall -Werror -I/opt/redpitaya/include -L/opt/redpitaya/lib digital_led_blink.c -lpthread -lrp -lm -o digital_led_blink
digital_led_blink.c:4:16: fatal error: rp.h: No such file or directory
compilation terminated.
<builtin>: recipe for target 'digital_led_blink' failed
make: *** [digital_led_blink] Error 1
I have managed to build and load the correct fpga image into the xdevcfg directory beforehand. I tried making the api as described in the following link, however this did not fix the issue either. Thank you for your help!

Re: trouble with C API example program

Posted: Thu Feb 10, 2022 11:14 am
by Soichgoschn
I managed to fix the problem by installing a newer version of the onboard OS for anyone having a similar problem.

Re: trouble with C API example program

Posted: Mon Mar 20, 2023 3:20 pm
by redpitaya
We noticed that a combination of a non-UNIFIED OS and the 2023.1 ecosystem from our GitHub results in an error when running C APIs.

Please use one of the following:
- Unified OS with 2023.1 ecosystem
- Previous OS images (latest stable and beta) with the 2022.2 version of the ecosystem