Hi,
I want to read SPI's SCK pin and PCS to see the output through the FreeMaster.
So I was trying to use the "Read Register" block for this in my Simulink model.
Whenever I add this block to the Simulink canvas, it shows the below error.
I have checked the mentioned folder in this error message, and it looks fine and full with all the related .mat files.
I have opened the "LPSPIO_SCK.mat" file, and it looks okay as well.
In the MBD community, I saw several people ask questions regarding this, but I could not find any proper answer from their posts.
This error occurred if even we just added the "Config Information" block and "Read Register" block to empty Simulink canvas.
How to solve this issue?
@mariuslucianand @constantinrazva Please help me out.
Thank you.
Hello, I have the same issue:
The link to the solution (https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Read-register-block-error-S32k142/m-p/1....) contains a scripts file for the S32K - is there also an update available for MPC57xx family ?
Until there is I will just use the band-aid method of copying the *.mat files I need to the path that it is incorrectly pointing to in the error message..!
Thanks,
Sean.
Hello @swmurray,
Thank you for replying this behavior to us!
As for the S32K1, I cannot replicate this issue on my end, so I've prepared a patch that might solve this issue on your side. I would kindly ask you to apply this patch on your side, test the changes on the registers blocks and please reply to me if this worked or not.
To apply the files, please run the below command in MATLAB's Command Window, and unzip the files from the archive. There should be 5 replaced files.
winopen(fullfile(mbd_find_mpc_root, 'mbdtbx_mpc', 'mscripts'))
I am waiting for you feedback!
Hope this helps,
Marius
Thank you Marius, I followed your instructions and confirm that this issue is now fixed.
Cheers, Sean.
Yes i have also same problem.
Hi,
Was you able to solve this? I am having the same issue.
Thanks!