Read_Register block (register_s32k_read_block) Error evaluating 'MaskDialog' callback

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

Read_Register block (register_s32k_read_block) Error evaluating 'MaskDialog' callback

跳至解决方案
2,262 次查看
ericrost
Contributor II

When adding the Read_Register block to an otherwise working model, I get the attached error, and the "Peripheral" dropdown list comes up with only <empty> in the pick list as shown. 

Any guidance to resolve this error would be appreciated.

0 项奖励
1 解答
1,950 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @ericrost,

Can you please apply the files attached in the below-mentioned thread? All the instructions are there:

https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Read-register-block-error-S32k142/m-p/1...

Hope this helps,

Marius

在原帖中查看解决方案

标记 (1)
0 项奖励
6 回复数
2,187 次查看
ericrost
Contributor II

@mariuslucianand,

I am using R2020a Update 7. There is no output to the command window, however the contents of the error window mention that callback specifically:

"Error evaluating 'MaskDialog' callback of register_s32k_read block (mask) 'CAN_Interface/Read_Register'. Callback string is 'mbd_s32k_periph_update_cbk('read');'"

And:

"Error evaluating 'MaskDialog' callback of register_s32k_read block (mask) 'CAN_Interface/Read_Register'. Callback string is 'mbd_s32k_reg_update_cbk;'"

Images of the error dialog are attached to my original request.

0 项奖励
1,951 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @ericrost,

Can you please apply the files attached in the below-mentioned thread? All the instructions are there:

https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Read-register-block-error-S32k142/m-p/1...

Hope this helps,

Marius

标记 (1)
0 项奖励
1,927 次查看
ericrost
Contributor II

@mariuslucianand 

With some searching I found this post:

https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Read-register-block-error-S32k142/m-p/1...

 

Applying the patch attached to the solution resolved the error I encountered as well.

 

Thanks!

0 项奖励
1,931 次查看
ericrost
Contributor II

@mariuslucianand 

That link leads to a Message Not Found notice

0 项奖励
2,213 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @ericrost ,

Unfortunately, I cannot reproduce it on my side, even if I've seen this error reported by some other customer. Can you please tell me if there is an error reported in MATLAB's Command Window?

I am interested to see if it reports something under the mbd_S32k3_periph_update_cbk script. When the block is opened, it populates the peripherals and my guess is that it is unable to populate the list, which makes that <empty> dropdown option.

Also, can you please tell me which MATLAB version are you using?

mariuslucianand_0-1641240613393.png

Regards,

Marius

0 项奖励
1,956 次查看
ericrost
Contributor II

@mariuslucianand:

The file it is trying to read has an error in the path it is looking in, I'm using an S32K144, and the path is pointing to:

Matlab Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\mbdtbx_s32k\devices\S32K116\signal_description\S32K144\.mat

Bold added for clarity, there is an obvious error in that path looking for S32K144 related files in the S32K116 branch of the directory tree.

Clarifying information provided in the original report, using the png I attached as reference to produce that path.

0 项奖励