Read register block error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Read register block error

2,088 次查看
p_a_u_darshana
Contributor III

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.

p_a_u_darshana_0-1637892988957.png

I have checked the mentioned folder in this error message, and it looks fine and full with all the related .mat files.

p_a_u_darshana_1-1637893056380.png

I have opened the "LPSPIO_SCK.mat" file, and it looks okay as well.

p_a_u_darshana_0-1637894357481.png

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.

p_a_u_darshana_2-1637893713551.png

 

How to solve this issue? 

@mariuslucianand @constantinrazva Please help me out.

Thank you.

标签 (1)
标记 (3)
0 项奖励
6 回复数

1,894 次查看
mariuslucianand
NXP Employee
NXP Employee

1,760 次查看
swmurray
Contributor II

Hello, I have the same issue:

swmurray_0-1651139450496.png

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.

0 项奖励

1,753 次查看
mariuslucianand
NXP Employee
NXP Employee

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'))

mariuslucianand_0-1651160409054.png

I am waiting for you feedback!

Hope this helps,

Marius

 

0 项奖励

1,743 次查看
swmurray
Contributor II

Thank you Marius, I followed your instructions and confirm that this issue is now fixed.

Cheers, Sean.

0 项奖励

1,899 次查看
McGlynn6
Contributor I

Yes i have also same problem.

 

0 项奖励

1,972 次查看
Poley
Contributor V

Hi,

Was you able to solve this? I am having the same issue.

Thanks!

0 项奖励