Read_Register and Write_Register blocks error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Read_Register and Write_Register blocks error

Jump to solution
1,148 Views
ext-rafael_barb
Contributor III

Hi,

I am using the MPC5744P toolbox on Matlab and I got the following error when I tried to load the Read_Register/Write_Register:

pastedImage_1.png

What could I do?

Regards, Rafael

1 Solution
988 Views
constantinrazva
NXP Employee
NXP Employee

Hello ext-rafael.barbosa@chassisbrakes.com‌,

When I opened your model, everything seems to be fine.

pastedImage_1.png

I was able to open every block (ADC config, start, main config, freemaster) without any issues - so it must be a problem with some paths. A simple way to check if this is indeed what is causing those errors, you could go to Set Path -> Default -> Save

pastedImage_2.png

and then run the mbd_mpc_path script (from the toolbox installation root).

Note that after resetting the MATLAB path to default, you'll lose paths to other toolboxes you might have had, so you'll have to add them later.

Let us know if you're still having problems.

Kind regards,

Razvan.

View solution in original post

7 Replies
988 Views
constantinrazva
NXP Employee
NXP Employee

Hello ext-rafael.barbosa@chassisbrakes.com‌,

Could you share the model with us? I was not able to reproduce this error in a simple example.

Kind regards,

Razvan.

0 Kudos
988 Views
ext-rafael_barb
Contributor III

Hello Razvan,

Thank you for the prompt response.

Sure, please find the model attached.

Kind Regards, Rafael

0 Kudos
989 Views
constantinrazva
NXP Employee
NXP Employee

Hello ext-rafael.barbosa@chassisbrakes.com‌,

When I opened your model, everything seems to be fine.

pastedImage_1.png

I was able to open every block (ADC config, start, main config, freemaster) without any issues - so it must be a problem with some paths. A simple way to check if this is indeed what is causing those errors, you could go to Set Path -> Default -> Save

pastedImage_2.png

and then run the mbd_mpc_path script (from the toolbox installation root).

Note that after resetting the MATLAB path to default, you'll lose paths to other toolboxes you might have had, so you'll have to add them later.

Let us know if you're still having problems.

Kind regards,

Razvan.

988 Views
ext-rafael_barb
Contributor III

Dear Razvan,

The issue appear when trying to load the Write_Register or Read_Register block on the model.
The model without these block, indeed are ok.

Please consider the new model that I am sending, which I can face the error just double clicking either the Read_Register or Write_Register block.

Kind Regards, Rafael

0 Kudos
988 Views
constantinrazva
NXP Employee
NXP Employee

Hello ext-rafael.barbosa@chassisbrakes.com‌,

Even with the new model you provided, I was still able to open all blocks without facing any issues. This makes me think this is due to some paths being broken - so I would still suggest you clean the MATLAB path, run the script mentioned above and see if everything works now. 

Kind regards,

Razvan.

988 Views
ext-rafael_barb
Contributor III

Dear Razvan,

After run mbd_mpc_path it works.

Thank you for the Suport!

0 Kudos
988 Views
constantinrazva
NXP Employee
NXP Employee

Ok, glad to hear that!

Kind regards,

Razvan.

0 Kudos