How to fix none-existing path to clock-frequency with raspi()?
Show older comments
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
Prasanth Sunkara
on 6 Mar 2026
Answers (0)
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!