Rasbpberry Pi and MATLAB connection
11 次查看(过去 30 天)
显示 更早的评论
Zahra
2024-4-11
Hello,
I am trying to connect MATLAB to Raspberry Pi. I wrote this code:
targetObj=targetHardware('Raspberry Pi');
deploy(targetObj,'CARPID');
r=raspi('10.0.0.121','vanderei','vande')
### Updating Raspberry Pi I/O server...
### Connecting to board...
### Connected to 10.0.0.121...
### Creating server folder...
### Transferring source files...
### Building MATLAB I/O server...
### Launching MATLAB I/O server...
Error retrieving the board revision.
I could not find the reason of this error. Can you help me?
Thank you.
回答(1 个)
MathWorks MATLAB Hardware Team
2024-4-15
编辑:MathWorks MATLAB Hardware Team
2024-4-15
Hi ,
Please tell which version of the MATLAB you are using.
Also please tell which operating system of the raspberry pi you are using .
This can be known by executing the following command in the raspberry pi
$ cat /etc/os-release
Please tell whether you are using 32 bit OS or 64 bit OS by executing the following in the raspberry pi
$ uname -m
Are you able to create the raspberry pi object on the MATLAB.
Please answer all above questions so that we can help you better.
Thanks,
MATLAB Hardware Team
6 个评论
Zahra
2024-4-15
Hi,
Thank you for your reply.
I use MATLAB R2024a.
And the operating system of the raspberry pi that I am using is:
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
And I am using aarch64.
To create the raspberry pi object on the MATLAB, I use this command in MATLAB:
>> r=raspi('10.0.0.121','vanderei','vande')
but after run I have this error:
Error retrieving the board revision.
And the raspberry pi object cannot create on workspace in MATLAB.
Thanks.
MathWorks MATLAB Hardware Team
2024-4-17
Hi,
As of the R2024a release, the MATLAB Support Package for Raspberry Pi hardware is compatible only with the 32-bit versions of Buster and Bullseye operating systems.
The raspi object creation is failing because here the raspi object is created for bookworm 64 bit OS.
Thanks
Zahra
2024-4-17
编辑:Zahra
2024-4-17
Hi,
Thank you for yout answer.
I changed to 32-bit but I have problem yet.
The error changed. but I have errors yet to create raspi object in MATLAB.
and now this complex error:
### Updating Raspberry Pi I/O server...
### Connecting to board...
### Connected to 10.0.0.121...
### Creating server folder...
### Transferring source files...
### Building MATLAB I/O server...
Error executing command "make ONLY_MATLAB_IO=0 IS_64_BIT=0 -C
/opt/MATLAB/mw_server_v24.1.0 -f Makefile LC_ALL=C". Details:
STDERR:
IO_wrapperNanomsgPubSub.c:101:14: warning: pointer targets in assignment from 'uint8_T
*' {aka 'unsigned char *'} to 'char_T *' {aka 'char *'} differ in signedness
[-Wpointer-sign]
101 | jsonData = &payloadBufferRx[index];
| ^
IO_wrapperNanomsgPubSub.c: In function 'nanomsgClientRecv':
IO_wrapperNanomsgPubSub.c:112:14: warning: unused variable 'index' [-Wunused-variable]
112 | uint32_T index = 0;
| ^~~~~
MW_Pyserver_control.c: In function 'MW_execmd':
MW_Pyserver_control.c:131:9: warning: unused variable 'ret' [-Wunused-variable]
131 | int ret = 0, bufferLoc = 0;
| ^~~
MW_Pyserver_control.c: In function 'MW_getDefines':
MW_Pyserver_control.c:43:29: warning: 'MW_pyserver.py' directive writing 14 bytes into a
region of size between 1 and 65535 [-Wformat-overflow=]
43 | sprintf(pyserverLoc, "%sMW_pyserver.py", exePath);
| ^~~~~~~~~~~~~~
MW_Pyserver_control.c:43:5: note: 'sprintf' output between 15 and 65549 bytes into a
destination of size 65535
43 | sprintf(pyserverLoc, "%sMW_pyserver.py", exePath);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
MW_Pyserver_control.c: In function 'MW_killPyserver':
MW_Pyserver_control.c:69:34: warning: '%s' directive writing up to 65534 bytes into a
region of size 186 [-Wformat-overflow=]
69 | sprintf(buff, "sudo pkill -f %s", pyserverLoc);
| ^~ ~~~~~~~~~~~
MW_Pyserver_control.c:69:5: note: 'sprintf' output between 15 and 65549 bytes into a
destination of size 200
69 | sprintf(buff, "sudo pkill -f %s", pyserverLoc);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
MW_Pyserver_control.c: In function 'MW_launchPyserver':
MW_Pyserver_control.c:95:24: warning: '%s' directive writing up to 65534 bytes into a
region of size 250 [-Wformat-overflow=]
95 | sprintf(cmd, "sudo %s %s >/tmp/mw_websoc_sl_io.log &", pyserverLoc,
jsonFileLoc);
| ^~ ~~~~~~~~~~~
MW_Pyserver_control.c:95:5: note: 'sprintf' output between 35 and 66592 bytes into a
destination of size 255
95 | sprintf(cmd, "sudo %s %s >/tmp/mw_websoc_sl_io.log &", pyserverLoc,
jsonFileLoc);
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
MW_JSONParser.c: In function 'MW_getSignalStr':
MW_JSONParser.c:22:17: warning: assignment discards 'const' qualifier from pointer
target type [-Wdiscarded-qualifiers]
22 | *SigStr = json_object_to_json_string(Signals);
| ^
MW_JSONParser.c: In function 'MW_getDashboardSourceData':
MW_JSONParser.c:40:20: warning: assignment discards 'const' qualifier from pointer
target type [-Wdiscarded-qualifiers]
40 | *BlockLabelStr = json_object_get_string(blocklabelWithID);
| ^
MW_JSONParser.c:44:17: warning: assignment discards 'const' qualifier from pointer
target type [-Wdiscarded-qualifiers]
44 | *BlockIDStr = json_object_get_string(blockID);
| ^
MW_JSONParser.c:35:9: warning: variable 'keyExists' set but not used
[-Wunused-but-set-variable]
35 | int keyExists;
| ^~~~~~~~~
MW_JSONParser.c: In function 'MW_getPortData':
MW_JSONParser.c:62:13: warning: variable 'dataOut' set but not used
[-Wunused-but-set-variable]
62 | double *dataOut;
| ^~~~~~~
MW_JSONParser.c:61:10: warning: unused variable 'dataType' [-Wunused-variable]
61 | char dataType[1024];
| ^~~~~~~~
/usr/bin/ld: warning: libvchiq_arm.so, needed by /opt/vc/lib/libbcm_host.so, not found
(try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvcsm.so, needed by /opt/vc/lib/libmmal_vc_client.so, not found
(try using -rpath or -rpath-link)
/usr/bin/ld: /opt/vc/lib/libbcm_host.so: undefined reference to `single_get_func_table'
/usr/bin/ld: /opt/vc/lib/libbcm_host.so: undefined reference to `vchi_service_release'
/usr/bin/ld: /opt/vc/lib/libbcm_host.so: undefined reference to `vchiq_connect'
/usr/bin/ld: /opt/vc/lib/libmmal_vc_client.so: undefined reference to
`vchiq_initialise_fd'
/usr/bin/ld: /opt/vc/lib/libmmal_vc_client.so: undefined reference to `vcsm_init'
/usr/bin/ld: /opt/vc/lib/libbcm_host.so: undefined reference to `vchiq_initialise'
/usr/bin/ld: /opt/vc/lib/libmmal_vc_client.so: undefined reference to
`vchiq_release_service'
/usr/bin/ld: /opt/vc/lib/libbcm_host.so: undefined reference to `vchiq_release_message'
/usr/bin/ld: /opt/vc/lib/libmmal_vc_client.so: undefined reference to `vcsm_exit'
/usr/bin/ld: /opt/vc/lib/libbcm_host.so: undefined reference to `vchi_service_open'
/usr/bin/ld: /opt/vc/lib/libmmal_vc_client.so: undefined reference to
`vchiq_use_service'
/usr/bin/ld: /opt/vc/lib/libbcm_host.so: undefined reference to `vchi_msg_dequeue'
/usr/bin/ld: /opt/vc/lib/libbcm_host.so: undefined reference to `vchiq_queue_message'
/usr/bin/ld: /opt/vc/lib/libbcm_host.so: undefined reference to `vchi_service_close'
/usr/bin/ld: /opt/vc/lib/libbcm_host.so: undefined reference to `vchi_msg_queue'
/usr/bin/ld: /opt/vc/lib/libbcm_host.so: undefined reference to
`vchi_mphi_message_driver_func_table'
/usr/bin/ld: /opt/vc/lib/libbcm_host.so: undefined reference to `vchi_initialise'
/usr/bin/ld: /opt/vc/lib/libbcm_host.so: undefined reference to
`vchi_bulk_queue_receive'
/usr/bin/ld: /opt/vc/lib/libbcm_host.so: undefined reference to `vchi_msg_queuev'
/usr/bin/ld: /opt/vc/lib/libmmal_vc_client.so: undefined reference to
`vcsm_vc_hdl_from_hdl'
/usr/bin/ld: /opt/vc/lib/libmmal_vc_client.so: undefined reference to `vchiq_shutdown'
/usr/bin/ld: /opt/vc/lib/libmmal_vc_client.so: undefined reference to `vcsm_lock'
/usr/bin/ld: /opt/vc/lib/libbcm_host.so: undefined reference to `vchi_service_use'
/usr/bin/ld: /opt/vc/lib/libmmal_vc_client.so: undefined reference to
`vchiq_queue_bulk_receive'
/usr/bin/ld: /opt/vc/lib/libmmal_vc_client.so: undefined reference to `vcsm_free'
/usr/bin/ld: /opt/vc/lib/libmmal_vc_client.so: undefined reference to `vcsm_unlock_ptr'
/usr/bin/ld: /opt/vc/lib/libmmal_vc_client.so: undefined reference to `vcsm_unlock_hdl'
/usr/bin/ld: /opt/vc/lib/libmmal_vc_client.so: undefined reference to
`vchiq_queue_bulk_transmit'
/usr/bin/ld: /opt/vc/lib/libmmal_vc_client.so: undefined reference to
`vcsm_malloc_cache'
/usr/bin/ld: /opt/vc/lib/libbcm_host.so: undefined reference to
`vchi_bulk_queue_transmit'
/usr/bin/ld: /opt/vc/lib/libbcm_host.so: undefined reference to `vchiq_open_service'
/usr/bin/ld: /opt/vc/lib/libmmal_vc_client.so: undefined reference to
`vchiq_close_service'
/usr/bin/ld: /opt/vc/lib/libbcm_host.so: undefined reference to `vchi_connect'
/usr/bin/ld: /opt/vc/lib/libbcm_host.so: undefined reference to `vchi_create_connection'
collect2: error: ld returned 1 exit status
make: *** [Makefile:102: build] Error 1
STDOUT: make: Entering directory '/opt/MATLAB/mw_server_v24.1.0'
[Compiling] IO_wrapperv4l2.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE IO_wrapperv4l2.c -o obj/IO_wrapperv4l2.o
[Compiling] MW_PWM.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE MW_PWM.c -o obj/MW_PWM.o
[Compiling] MW_pigs.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE MW_pigs.c -o obj/MW_pigs.o
[Compiling] sharedServer.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE sharedServer.c -o obj/sharedServer.o
[Compiling] mw_wrapperCANChannel.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE mw_wrapperCANChannel.c -o obj/mw_wrapperCANChannel.o
[Compiling] LED.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE LED.c -o obj/LED.o
[Compiling] system.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE system.c -o obj/system.o
[Compiling] IO_wrapperLED.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE IO_wrapperLED.c -o obj/IO_wrapperLED.o
[Compiling] MW_digitalIO.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE MW_digitalIO.c -o obj/MW_digitalIO.o
[Compiling] customFunction.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE customFunction.c -o obj/customFunction.o
[Compiling] servoRaspi.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE servoRaspi.c -o obj/servoRaspi.o
[Compiling] IO_checksum.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE IO_checksum.c -o obj/IO_checksum.o
[Compiling] IO_packet.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE IO_packet.c -o obj/IO_packet.o
[Compiling] IO_standardperipherals.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE IO_standardperipherals.c -o obj/IO_standardperipherals.o
[Compiling] IO_wrapperI2C.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE IO_wrapperI2C.c -o obj/IO_wrapperI2C.o
[Compiling] IO_wrapperPulseIn.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE IO_wrapperPulseIn.c -o obj/IO_wrapperPulseIn.o
[Compiling] IO_wrapperSCI.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE IO_wrapperSCI.c -o obj/IO_wrapperSCI.o
[Compiling] PeripheralToHandle.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE PeripheralToHandle.c -o obj/PeripheralToHandle.o
[Compiling] IO_debug.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE IO_debug.c -o obj/IO_debug.o
[Compiling] IO_server.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE IO_server.c -o obj/IO_server.o
[Compiling] IO_utilities.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE IO_utilities.c -o obj/IO_utilities.o
[Compiling] IO_wrapperDigitalIO.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE IO_wrapperDigitalIO.c -o obj/IO_wrapperDigitalIO.o
[Compiling] IO_wrapperPWM.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE IO_wrapperPWM.c -o obj/IO_wrapperPWM.o
[Compiling] IO_wrapperSPI.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE IO_wrapperSPI.c -o obj/IO_wrapperSPI.o
[Compiling] frameBuffer.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE frameBuffer.c -o obj/frameBuffer.o
[Compiling] frameBufferRaspi.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE frameBufferRaspi.c -o obj/frameBufferRaspi.o
[Compiling] joystick.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE joystick.c -o obj/joystick.o
[Compiling] joystickRaspi.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE joystickRaspi.c -o obj/joystickRaspi.o
[Compiling] runCommand.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE runCommand.c -o obj/runCommand.o
[Compiling] IO_wrapperCameraboard.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE IO_wrapperCameraboard.c -o obj/IO_wrapperCameraboard.o
[Compiling] IO_wrapperArducamMultiAdapter.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE IO_wrapperArducamMultiAdapter.c -o
obj/IO_wrapperArducamMultiAdapter.o
[Compiling] picam.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE picam.c -o obj/picam.o
[Compiling] arducamMultiAdapter.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE arducamMultiAdapter.c -o obj/arducamMultiAdapter.o
[Compiling] /opt/userland/host_applications/linux/apps/raspicam/RaspiCamControl.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE /opt/userland/host_applications/linux/apps/raspicam/RaspiCamControl.c
-o obj/RaspiCamControl.o
[Compiling] /opt/userland/host_applications/linux/apps/raspicam/RaspiHelpers.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE /opt/userland/host_applications/linux/apps/raspicam/RaspiHelpers.c -o
obj/RaspiHelpers.o
[Compiling] /opt/userland/host_applications/linux/apps/raspicam/RaspiPreview.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE /opt/userland/host_applications/linux/apps/raspicam/RaspiPreview.c -o
obj/RaspiPreview.o
[Compiling] /opt/userland/host_applications/linux/apps/raspicam/RaspiCLI.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE /opt/userland/host_applications/linux/apps/raspicam/RaspiCLI.c -o
obj/RaspiCLI.o
[Compiling] /opt/userland/host_applications/linux/apps/raspicam/RaspiCommonSettings.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE
/opt/userland/host_applications/linux/apps/raspicam/RaspiCommonSettings.c -o
obj/RaspiCommonSettings.o
[Compiling] IO_wrapperNanomsgPubSub.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE IO_wrapperNanomsgPubSub.c -o obj/IO_wrapperNanomsgPubSub.o
[Compiling] MW_Pyserver_control.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE MW_Pyserver_control.c -o obj/MW_Pyserver_control.o
[Compiling] MW_nanomsgClient.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE MW_nanomsgClient.c -o obj/MW_nanomsgClient.o
[Compiling] MW_JSONParser.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE MW_JSONParser.c -o obj/MW_JSONParser.o
[Compiling] IO_wrapperEncoder.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE IO_wrapperEncoder.c -o obj/IO_wrapperEncoder.o
[Compiling] MW_RaspiEncoder.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE MW_RaspiEncoder.c -o obj/MW_RaspiEncoder.o
[Compiling] IO_wrapper_i2c_pwm_pca9685.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE IO_wrapper_i2c_pwm_pca9685.c -o obj/IO_wrapper_i2c_pwm_pca9685.o
[Compiling] MW_i2c_pwm_pca9685.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include
-I/opt/userland/interface/vcos -I/opt/userland/interface/vcos/pthreads
-I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline
-pipe -D_DEBUG -D_MATLABIO_ -DMW_USERLAND_INUSE -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE
-DMW_PANTILT_INUSE MW_i2c_pwm_pca9685.c -o obj/MW_i2c_pwm_pca9685.o
echo [Linking]
[Linking]
make: Leaving directory '/opt/MATLAB/mw_server_v24.1.0'
MathWorks MATLAB Hardware Team
2024-4-22
编辑:MathWorks MATLAB Hardware Team
2024-4-22
Could you kindly confirm if you've updated the Raspberry Pi with the 32-bit Bullseye OS? From the logs, it appears that the Raspberry Pi might have been updated with the 32-bit Bookworm instead. It's important to note that the MATLAB Support Package for Raspberry Pi is compatible only with the 32-bit versions of Buster or Bullseye OS.
To verify the current OS version on your Raspberry Pi, please execute the following command in the Raspberry Pi terminal:
$ cat /etc/os-release
If the output indicates "Bookworm", we kindly ask you to reimage your Raspberry Pi with a 32-bit version of either Buster or Bullseye OS.
Should your Raspberry Pi be running on Buster or Bullseye and you continue to encounter the issue you've mentioned, please do not hesitate to get in touch with our technical support team at: https://www.mathworks.com/support/contact_us.html
Thank you for your attention to this matter.
Warm regards,
The MATLAB Hardware Team
MATHWORKS
cheongmun cho
2024-6-28
Thank you. It didn't work for three days, but it worked out after changing the operating system
Max
2024-8-13
Its dissappointing that matlab relies on a 32bit OS and the userland library, which is explicetly declared obsolete and with "DO NOT USE" in its github repository.
Same for wiringpi, which was nothing but a hobby project by an individual and has long been abandoned by that person. Pretty much everyone has moved to official linux drivers.
另请参阅
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!发生错误
由于页面发生更改,无法完成操作。请重新加载页面以查看其更新后的状态。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
亚太
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)