"matlab-rpi-setup" command returns "Illegal instruction" for Matlab Online Setup
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I already set up my raspberry with package manager instructions from Raspberry Package support and are able to control ir from Matlab.
Now, I am following this guide https://www.mathworks.com/help/supportpkg/raspberrypiio/ug/connect-to-raspberry-pi-hardware-board-in-matlab-online.html to try to connect from Matlab Online
So, the problem is that when i run sudo matlab-rpi-setup I get: Illegal instruction.
Here is the log for the matlab-rpi installation:
pi@raspberrypi:~ $ sudo apt install matlab-rpi
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
libfuse2
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
matlab-rpi
0 upgraded, 1 newly installed, 0 to remove and 181 not upgraded.
Need to get 55.1 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://archive.raspberrypi.org/debian bullseye/main armhf matlab-rpi armhf 23.1.0~bullseye [55.1 MB]
Fetched 55.1 MB in 1min 39s (554 kB/s)
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "en_US.UTF-8",
LC_MONETARY = "en_US.UTF-8",
LC_ADDRESS = "en_US.UTF-8",
LC_TELEPHONE = "en_US.UTF-8",
LC_NAME = "en_US.UTF-8",
LC_MEASUREMENT = "en_US.UTF-8",
LC_IDENTIFICATION = "en_US.UTF-8",
LC_NUMERIC = "en_US.UTF-8",
LC_PAPER = "en_US.UTF-8",
LANG = ""
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package matlab-rpi.
(Reading database ... 119268 files and directories currently installed.)
Preparing to unpack .../matlab-rpi_23.1.0~bullseye_armhf.deb ...
Unpacking matlab-rpi (23.1.0~bullseye) ...
Setting up matlab-rpi (23.1.0~bullseye) ...
Adding user to required groups...
Starting connection services...
cp: cannot stat '/usr/lib/libmodbus.so': No such file or directory
Package Install complete.
Run 'sudo matlab-rpi-setup' to configure Raspberry Pi for MATLAB Online connection.
Processing triggers for man-db (2.9.4-2) ...
Worth mentioning that I am using a Raspberry Pi Zero W.
2 comentarios
Prasanth Sunkara
el 30 de Ag. de 2023
Are you working on 32-bit 0r 64-bit bullseye operating system?
Please note that in MATLAB Online, only 32-bit Bullseye is supported.
Respuestas (1)
Sachin Lodhi
el 4 de Sept. de 2023
Hi Fabian,
Based on my understanding of the issue, it seems that you are attempting to connect to a “Raspberry Pi Zero W” Model using the “MATLAB Online Setup” and “Raspberry Pi Support Package”.
However, I regret to inform you that the “Raspberry Pi Zero W” is currently not supported by the package, which is why you encountered the "Illegal instruction" error.
Please note that the “Raspberry Pi Support” package in MATLAB Online is compatible with Raspberry Pi Zero 2 W, Pi 2 B, Pi 3 B, Pi 3 B+, Pi 4 B, and Pi Compute Module 4. Therefore, I would suggest considering an upgrade to one of these supported models. Alternatively, upgrading to MATLAB R2018a or a later version would also enable you to use the Raspberry Pi Zero W model.
For more detailed information regarding the supported Raspberry Pi models, I recommend referring to the following page: Raspberry Pi Support from MATLAB - Hardware Support - MATLAB & Simulink (mathworks.com).
I hope that the provided information will assist you in resolving the issue.
Thanks,
Sachin.
4 comentarios
Prasanth Sunkara
el 11 de Sept. de 2023
If you are using R2022b, as you have rightly found that, please use the older image.
R2023a is comaptible with the latest OS image (as of the date of this comment).
If you are facing issue with matlab-rpi-setup, I would suggest once try disabling two-step verification on your MATLAB Central account and see if it helps.
Ver también
Categorías
Más información sobre MATLAB Support Package for Raspberry Pi Hardware en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!