Hello, I recently trying an example of I2C communication in Simulink using library example given in NXP Library toolbox. But its now working i connected the hardware as instructed in the example.
for dubbing i am using S32 Design Studio.
i am using S32K344 Q257 and example s32k3xx_i2c_async_s32ct
following is the model and code
PFA
Hello, @avinashstarkenn,
Thank you for your interest in Model-Based Design Toolbox for S32K3.
I downloaded the TRY1.elf from your attachment to the S32K344-Q257 hardware board and validated that the variables are incrementing in the FreeMASTER project s32k3xx_i2c_async_s32ct.pmpx.
A suggestion would be to first try the example inside the toolbox without renaming it and validate it using the FreeMASTER project s32k3xx_i2c_async_s32ct.pmpx, which can be found in the example folder.
Could you provide us with more details about the problem you are experiencing so we can investigate the issue further?
Best regards,
Cristina
Hello, @avinashstarkenn,
FreeMASTER is a very useful tool for real-time data visualization and MCU real-time control. A FreeMASTER project, s32k3xx_i2c_async_s32ct.pmpx, was attached to the model to inspect the values of the variables in the scope and it can be opened from the FreeMASTER link in the Explore all options list, as you can see in the image below. Instructions can be found in the HW and SW setup link in the Explore all options list, that opens the s32k3xx_i2c_async_s32ct_example_readme.html next to the model.
If you want to use S32 Design Studio for debugging this model, you can follow these steps:
This should open the generated project corresponding to the model in S32 Design Studio IDE, where it can be be built, flashed, debugged, modified, integrated with other existing code, etc.
Hope this helps,
Cristina