Thank you, Walter Roberson. The resolution of this issue depends on the operating system installed on the Raspberry Pi.
creating server folder error Raspberry pi connection Matlab
17 views (last 30 days)
Show older comments
I am trying to connect MATLAB to a Raspberry Pi 3 Model B (32 bits) using the following command, but I get the following error. How can I fix this?
>> r=raspi('192.168.1.82','dsp','dsp2025')
### Updating Raspberry Pi I/O server...
### Connecting to board...
### Connected to 192.168.1.82...
### Creating server folder...
Error executing command "sudo make -C /opt/MATLAB/mw_server_v25.1.0 SERVER_DIR=/opt/MATLAB/mw_server_v25.1.0 -f
Makefile_raspiPeriphs". Details:
STDERR: MW_SocketCAN.c: In function ‘int32_T MW_CAN_InitSocket(const char*, int32_T, int32_T)’:
MW_SocketCAN.c:265:1: warning: no return statement in function returning non-void [-Wreturn-type]
265 | }
| ^
MW_gpio.c: In function ‘int EXT_GPIO_init(unsigned int, uint8_T)’:
MW_gpio.c:34:20: error: ‘gpiod_chip_open_by_name’ was not declared in this scope; did you mean ‘gpiod_chip_info_get_name’?
34 | gpioChip = gpiod_chip_open_by_name(GPIO_CHIP_NAME);
| ^~~~~~~~~~~~~~~~~~~~~~~
| gpiod_chip_info_get_name
MW_gpio.c:45:13: error: ‘gpiod_line_release’ was not declared in this scope; did you mean ‘gpiod_line_request’?
45 | gpiod_line_release(existingGpioInfo->line);
| ^~~~~~~~~~~~~~~~~~
| gpiod_line_request
MW_gpio.c:50:31: error: ‘gpiod_chip_get_line’ was not declared in this scope; did you mean ‘gpiod_chip_get_info’?
50 | struct gpiod_line *line = gpiod_chip_get_line(gpioChip, gpio);
| ^~~~~~~~~~~~~~~~~~~
| gpiod_chip_get_info
MW_gpio.c:56:15: error: ‘gpiod_line_request_output’ was not declared in this scope; did you mean
‘gpiod_line_request_get_fd’?
56 | gpiod_line_request_output(line, "gpio_app", 0) :
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| gpiod_line_request_get_fd
MW_gpio.c:57:15: error: ‘gpiod_line_request_input’ was not declared in this scope; did you mean ‘gpiod_line_request_get_fd’?
57 | gpiod_line_request_input(line, "gpio_app");
| ^~~~~~~~~~~~~~~~~~~~~~~~
| gpiod_line_request_get_fd
MW_gpio.c: In function ‘int EXT_GPIO_terminate(unsigned int)’:
MW_gpio.c:81:13: error: ‘gpiod_line_release’ was not declared in this scope; did you mean ‘gpiod_line_request’?
81 | gpiod_line_release(gpioInfos[i].line);
| ^~~~~~~~~~~~~~~~~~
| gpiod_line_request
MW_gpio.c: In function ‘int EXT_GPIO_read(unsigned int, boolean_T*)’:
MW_gpio.c:122:15: error: ‘gpiod_line_get_value’ was not declared in this scope; did you mean ‘gpiod_line_value’?
122 | int val = gpiod_line_get_value(gpioInfo->line);
| ^~~~~~~~~~~~~~~~~~~~
| gpiod_line_value
MW_gpio.c: In function ‘int EXT_GPIO_write(unsigned int, boolean_T)’:
MW_gpio.c:135:15: error: ‘gpiod_line_set_value’ was not declared in this scope; did you mean ‘gpiod_line_value’?
135 | int ret = gpiod_line_set_value(gpioInfo->line, value);
| ^~~~~~~~~~~~~~~~~~~~
| gpiod_line_value
make: *** [Makefile_raspiPeriphs:228: MW_gpio.c.o] Error 1
STDOUT: make: Entering directory '/opt/MATLAB/mw_server_v25.1.0'
g++ -c -MMD -MP -MF"MW_availableWebcam.c.dep" -MT"MW_availableWebcam.c.o" -O2 -fPIC -D_MATLABIO_ -DIO_CUSTOM_ENABLE=1
-D_MW_DEBUG_=0 -I/opt/MATLAB/mw_server_v25.1.0 -o "MW_availableWebcam.c.o" "MW_availableWebcam.c"
g++ -c -MMD -MP -MF"MW_SocketCAN.c.dep" -MT"MW_SocketCAN.c.o" -O2 -fPIC -D_MATLABIO_ -DIO_CUSTOM_ENABLE=1 -D_MW_DEBUG_=0
-I/opt/MATLAB/mw_server_v25.1.0 -o "MW_SocketCAN.c.o" "MW_SocketCAN.c"
g++ -c -MMD -MP -MF"MW_v4l2_cam.c.dep" -MT"MW_v4l2_cam.c.o" -O2 -fPIC -D_MATLABIO_ -DIO_CUSTOM_ENABLE=1 -D_MW_DEBUG_=0
-I/opt/MATLAB/mw_server_v25.1.0 -o "MW_v4l2_cam.c.o" "MW_v4l2_cam.c"
g++ -c -MMD -MP -MF"MW_gpio.c.dep" -MT"MW_gpio.c.o" -O2 -fPIC -D_MATLABIO_ -DIO_CUSTOM_ENABLE=1 -D_MW_DEBUG_=0
-I/opt/MATLAB/mw_server_v25.1.0 -o "MW_gpio.c.o" "MW_gpio.c"
make: Leaving directory '/opt/MATLAB/mw_server_v25.1.0'
0 Comments
Answers (1)
See Also
Categories
Find more on MATLAB Support Package for Raspberry Pi Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!