cancel
Showing results for 
Search instead for 
Did you mean: 

sending data using I2C on Simulink

aFromInCirT
Visitor

Hi there,

 

I'm using Nucleo-G474RE to send a bit stream over Simulink, instead of receiving 24 bits on the oscilloscope i can read only 8 bits, which are supposed to be the 8 bits in the middle that have the address of the peripheral and the status of the I2C block gives me 516 which is not on the documentation from matlab.Screenshot 2025-12-10 141427.pngScreenshot 2025-12-10 141544.png

1 ACCEPTED SOLUTION

Accepted Solutions
Andrew Neil
Super User

Simulink is a Mathworks product - nothing to do with ST - so you need to go to Mathworks for support:

https://uk.mathworks.com/help/

https://uk.mathworks.com/matlabcentral/

https://uk.mathworks.com/company/aboutus/contact_us.html

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

View solution in original post

1 REPLY 1
Andrew Neil
Super User

Simulink is a Mathworks product - nothing to do with ST - so you need to go to Mathworks for support:

https://uk.mathworks.com/help/

https://uk.mathworks.com/matlabcentral/

https://uk.mathworks.com/company/aboutus/contact_us.html

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.