Read register block error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Read register block error

2,087件の閲覧回数
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,893件の閲覧回数
mariuslucianand
NXP Employee
NXP Employee

1,759件の閲覧回数
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,752件の閲覧回数
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,742件の閲覧回数
swmurray
Contributor II

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

Cheers, Sean.

0 件の賞賛

1,898件の閲覧回数
McGlynn6
Contributor I

Yes i have also same problem.

 

0 件の賞賛

1,971件の閲覧回数
Poley
Contributor V

Hi,

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

Thanks!

0 件の賞賛