Matlab detects the wrong version of my Raspberry Pi

조회 수: 3 (최근 30일)
Nicolas TRAUN
Nicolas TRAUN 2022년 1월 4일
댓글: Brian Kingstone 2024년 1월 12일
I am using a Raspberry Pi 4 Model B and when I installed the support packages I did it for this particular version.On the one hand, Matlab/Simulink always detects a Raspberry Pi 2 Model B (e.g. when I type raspi() in the Command Window). On the other hand, Raspberry Pi Resource Monitor displays a Pi with '2GB Ram and the ARMv7 Processor rev 3(v7) with 4 cores @ 1500MHz'. These specifications are correct for the RPI 4 Model B. Basically the RPI works, but I don't know why the wrong version is detected.
  댓글 수: 7
Dinis
Dinis 2022년 9월 2일
Same here. Does not detect my i2c bus too. This question has been up for months why has no staff at Mathworks answered it?
Brian Kingstone
Brian Kingstone 2024년 1월 12일
Same here. I am using a Raspberry Pi Compute Module 4 ( RPI OS is Bullseye) and Matlab2023B. Matlab detects BoardName: 'Raspberry Pi 2 Model B'

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

답변 (1개)

VINAYAK LUHA
VINAYAK LUHA 2023년 9월 14일
편집: VINAYAK LUHA 2023년 9월 14일
Hi Nicolas,
I understand that you wish to use a “RPI 4 Model B” board in MATLAB and have already installed support packages for the same and yet your MATLAB detects the device with an incorrect version.
Follow the pointers given below to resolve the issue -
  1. Verify the compatibility of your “Raspberry Pi 4 Model B” with your MATLAB version using the following documentation https://in.mathworks.com/hardware-support/raspberry-pi-matlab.html.
  2. Check and install available updates (if any) for Raspberry Pi support packages in the MATLAB Add-Ons Manager.
  3. Check and install Raspberry Pi firmware updates (if any) by running the following command on your board. Reboot your board for changes to take effect and connect to MATLAB. "sudo rpi-update"
  4. Establish a fresh connection with the board as per the below syntax, more on this in the following documentation https://in.mathworks.com/help/supportpkg/raspberrypiio/ref/raspi.html#d124e241
mypi = raspi(ipaddress,username,password);
If none of these step work, contact MathWorks Support for further assistance and more specific guidance based on your setup.
Regards,
Vinayak Luha

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for Raspberry Pi Hardware에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by