MATLAB Answers

Matlab support for Raspberry Pi 4

277 views (last 30 days)
Pawel Gakan
Pawel Gakan on 12 Jul 2019
Commented: Christopher Hamilton on 7 Jun 2020 at 15:16
Hey,
I'm making a robotics project for my BSc and was wandering when could we expect support for Raspberry Pi 4? This page said that RPi's are currently supported only up to 3B+, 4 being quite new is not even mentioned.
On the other hand, are there some better or equal SoC for robotics projects that are supported by matlab?
Thanks in advance!

  2 Comments

Alessio Gagliardi
Alessio Gagliardi on 5 Sep 2019
I am interested as well,
There is a plan for releasing the Raspberry Pi 4 Support Toolbox? Thanks in advance.
Alessio
Rik
Rik on 5 Sep 2019
Even if sometimes staff members look on this forum and post from time to time, the help on this forum is mostly provided by people who are doing this as a volunteer. You can contact Mathworks support directly with the Contact Us button at the top of the page if you want an official answer.

Sign in to comment.

Answers (3)

Prasanth Sunkara
Prasanth Sunkara on 17 Sep 2019
Hello Pawel,
Raspberry Pi 4B is a significant upgrade over earlier versions. As of today(Sept 2019), the latest release, MATLAB R2019b supports upto 3B+. The development team is actively looking into the request for 4B support and it will be made available in one of the future releases.
Thanks,
Prasanth

  8 Comments

Show 5 older comments
Prasanth Sunkara
Prasanth Sunkara on 13 Jan 2020
Hello @Takamitsu,
The above suggested OS customization workflow would work for versions from R2018b - R2019b. Please try it out and let us know if you face any issues.
Hello @Pawel,
ROS nodes, to put it in a simpler way, are event driven. However if you deploy a simulink model with non-ros blocks on to Raspberry Pi, thery are scheduled to run at the sample time Simulink allots during the compilation of the model.
But since Raspberry pi runs a non real-time OS, the OS may not always guarantee the Simulink generated executable runs at the specified sample time. But in most cases the OS is likely to respect the specified sample time. It varies based on factors like, the block's algorithm computational complexity vs sample time specifed for that block, other programs running on the board etc.
Hope this helps!
Thanks,
Prasanth
Pawel Gakan
Pawel Gakan on 13 Jan 2020
Hello @Prasanth,
Yes, this the exact behaviour I've encountered.
I've compiled and successfully installed preemptive kernel on RPi. Do you think, that this is something I can take advantage of by using MATLAB/Simulink?
Thanks,
Paweł
takamitsu hatakeyama
takamitsu hatakeyama on 16 Jan 2020
Hello @Prasanth
Thank you for your repry.
I have try raspbery pi4 on MATLAB2018b.
It work well for now.
If I found any informative issue, I'll share infomation.
Thanks,
Takamitsu

Sign in to comment.


Laalitya Acharya
Laalitya Acharya on 16 Jan 2020
Prasanth Sunkara - I have pi3 and pi4 and both of them are getting errors of
$sudo apt-get install matlab-rpi
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package matlab-rpi
I am trying to do this for matlab online.

  1 Comment

Christopher Hamilton
Christopher Hamilton on 7 Jun 2020 at 15:16
Looks like the package installer calls for an older version of libgnutls-openssl. Version 10u4 is the only one on the repo. Kinda new to linux, is there a way I can download/install the older version?
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/g/gnutls28/libgnutls-openssl27_3.6.7-4+deb10u3_armhf.deb 404 Not Found [IP: 93.93.128.193 80]

Sign in to comment.


Tohru Kikawada
Tohru Kikawada on 29 May 2020
Now MATLAB and Simulink supports Raspberry Pi 4 Model B from R2020a.

  1 Comment

Christopher Hamilton
Christopher Hamilton on 7 Jun 2020 at 15:15
Looks like the package installer calls for an older version of libgnutls-openssl. Version 10u4 is the only one on the repo. Kinda new to linux, is there a way I can download/install the older version?
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/g/gnutls28/libgnutls-openssl27_3.6.7-4+deb10u3_armhf.deb 404 Not Found [IP: 93.93.128.193 80]

Sign in to comment.