Trouble with Led program

Applications, development tools, FPGA, C, WEB
Post Reply
retro-guy
Posts: 1
Joined: Thu Jan 06, 2022 11:41 pm

Trouble with Led program

Post by retro-guy » Thu Jan 06, 2022 11:48 pm

Hi I am a newbie in programing and redpitaya and am trying to get a test program to work my redpitaya but have problems with compiling ,program in in c.


root@rp-f074d8:~# gcc -o led_button led_button.c
/tmp/ccDGKETk.o: In function `main':
led_button.c:(.text+0x3e): undefined reference to `rp_Init'
led_button.c:(.text+0x72): undefined reference to `rp_DpinSetState'
led_button.c:(.text+0x84): undefined reference to `rp_DpinSetState'
led_button.c:(.text+0x9c): undefined reference to `rp_Release'
collect2: error: ld returned 1 exit status
root@rp-f074d8:~#

Anyone can help ?

lucien.miara
Posts: 11
Joined: Thu Oct 28, 2021 1:35 pm

Re: Trouble with Led program

Post by lucien.miara » Fri Jan 07, 2022 11:59 am

Hi,
I think you need to link the redpitaya api when you compile your program.
Here is the documentation page on how to make C applications : https://redpitaya.readthedocs.io/en/lat ... /comC.html
Regards,
Lucien

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 17 guests