trouble with C API example program

Applications, development tools, FPGA, C, WEB
Post Reply
Soichgoschn
Posts: 4
Joined: Sat Jan 22, 2022 4:43 pm

trouble with C API example program

Post by Soichgoschn » Sun Feb 06, 2022 4:42 pm

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!

Soichgoschn
Posts: 4
Joined: Sat Jan 22, 2022 4:43 pm

Re: trouble with C API example program

Post by Soichgoschn » Thu Feb 10, 2022 11:14 am

I managed to fix the problem by installing a newer version of the onboard OS for anyone having a similar problem.

User avatar
redpitaya
Site Admin
Posts: 880
Joined: Wed Mar 26, 2014 7:04 pm

Re: trouble with C API example program

Post by redpitaya » Mon Mar 20, 2023 3:20 pm

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

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 35 guests