How to fix none-existing path to clock-frequency with raspi()?

Using the Hardware Setup of the Simulink Support Package for Raspberry Pi Hardware, I set up my Raspberry Pi 3 B+ and installed all mentioned packages and librarys.
When I try running the command raspi(), Matlab raises the following error:
Cannot query I2C bus speed.
Caused by:
Error using matlabshared.internal.ssh2client/execute
Error executing command "xxd -ps
/sys/class/i2c-adapter/i2c-1/of_node/clock-frequency".
Details:
STDERR: xxd:
/sys/class/i2c-adapter/i2c-1/of_node/clock-frequency: No such
file or directory
STDOUT:
I manually checked and the folder /sys/clss/i2c-adapter/ isn't even existing. Apperently with my Rasperry OS version, this folder doesn't exist anymore, although I2C is enabled as shown below:
***@MeinPi:~ $ sudo raspi-config nonint get_i2c
0
I am running this OS:
PRETTY_NAME="Raspbian GNU/Linux 12 (bookworm)"
NAME="Raspbian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=raspbian
ID_LIKE=debian
How do I fix this?

2 Comments

Hi @Florian, Could you please share your MATLAB release version? Is it R2026b?
Hey, my Version is R2025b and I figured out the issue. Apparently, unlike mentioned in the documentation (https://de.mathworks.com/help/simulink/supportpkg/raspberrypi_ug/connect-to-raspberry-pi-hardware-board-in-simulink-online.html) for setting up the Raspberry, it isn’t compatible with the Raspberry OS Versions buster or current version of bookwork. Buster isn’t supported by Raspberry anymore and the necessary packages and libraries cannot be installed via the Hardware setup. Additionally the current bookwork version doesn’t come with the path MATLAB tries to access. Also, I had to install some libraries and packages manually, because the Hardware setup wouldn’t work.

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB Support Package for Raspberry Pi Hardware in Help Center and File Exchange

Products

Release

R2025b

Asked:

on 4 Mar 2026

Edited:

on 6 Mar 2026

Community Treasure Hunt

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

Start Hunting!