Code Generating for Usrp Receiver Block for Raspberry Pi

조회 수: 2 (최근 30일)
rasp
rasp 2015년 3월 27일
댓글: Ethem 2017년 9월 21일
Hi,
When generating embedded code to run on raspberry pi 2, I get the following build error:
./libmwusrp_uhd_capi.lib: error adding symbols: File format not recognized
collect2: ld returned 1 exit status
The simulink model includes only Sdru Receiver block and a spectrum analyzer.
The lib file was installed with hardware support package. Any ideas to solve this problem?
The whole error message is as follows:
The call to realtime_make_rtw_hook, during the after_make hook generated the following error:
Error executing SSH command: make: Entering directory '/home/pi/bs_rec_001_rtt'
"gcc" -I"./" -O3 -D"MODEL=bs_rec_001" -D"NUMST=1" -D"NCSTATES=0" -D"HAVESTDIO=" -D"ON_TARGET_WAIT_FOR_START=1" -D"ONESTEPFCN=0" -D"EXT_MODE=1" -D"TERMFCN=1" -D"MAT_FILE=0" -D"MULTI_INSTANCE_CODE=0" -D"INTEGER_CODE=0" -D"MT=0" -D"CLASSIC_INTERFACE=0" -D"ALLOCATIONFCN=0" -D"TID01EQ=0" -D"_USE_TARGET_UDP_=" -D"_RUNONTARGETHARDWARE_BUILD_=" -D"EXIT_FAILURE=1" -D"EXTMODE_DISABLETESTING=" -c ./linuxUDP.c ./bs_rec_001.c ./bs_rec_001_data.c ./ert_main.c ./ext_svr.c ./ext_work.c ./rtiostream_interface.c ./updown.c ./rtiostream_tcpip.c ./rtiostream_utils.c
./bs_rec_001.c: In function ‘bs_rec_001_output’:
./bs_rec_001.c:52:5: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default]
./bs_rec_001.c: In function ‘bs_rec_001_initialize’:
./bs_rec_001.c:163:5: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default]
./bs_rec_001.c: In function ‘bs_rec_001_terminate’:
./bs_rec_001.c:175:5: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default]
"gcc" ./linuxUDP.o ./bs_rec_001.o ./bs_rec_001_data.o ./ert_main.o ./ext_svr.o ./ext_work.o ./rtiostream_interface.o ./updown.o ./rtiostream_tcpip.o ./rtiostream_utils.o ./libmwusrp_uhd_capi.lib -lm -ldl -lpthread -lrt -o ./MW/bs_rec_001
./libmwusrp_uhd_capi.lib: error adding symbols: File format not recognized
collect2: ld returned 1 exit status
_bs_rec_001.mk:122: recipe for target 'MW/bs_rec_001' failed
make: *** [MW/bs_rec_001] Error 1
make: Leaving directory '/home/pi/bs_rec_001_rtt'

답변 (1개)

Ethem
Ethem 2015년 4월 22일
The libmwusrp_uhd_capi.lib library is compiled for a desktop Linux distribution. As a result, you cannot link it to another executable compiled for a Raspberry Pi 2. As of R2015a release, USRP support package can be used on Windows, Linux, and Mac OS X desktop configuration. Regards, Ethem
  댓글 수: 2
Marcelo Segura
Marcelo Segura 2017년 9월 15일
Hi Ethem I have a similar problem, I don't really get what you mean on your answer. I want to run my model on a RPi which has connected a B200 with UHD drivers working on it. PLease let me know if that is possible.
Ethem
Ethem 2017년 9월 21일
USRP support package does not support Raspberry Pi targeting. libmwusrp_uhd_capi.lib is a library that is used to make UHD library accessible to MATLAB. That library is only provided for Windows, Mac OS and Linux (desktop) but not for Raspberry Pi.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Communications Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by