I am using the MPC5744P toolbox on Matlab and I got the following error when I tried to load the Read_Register/Write_Register:
What could I do?
Hello Rafael Barbosa,
When I opened your model, everything seems to be fine.
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
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.
Could you share the model with us? I was not able to reproduce this error in a simple example.
Thank you for the prompt response.
Sure, please find the model attached.
Kind Regards, Rafael
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.
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.
After run mbd_mpc_path it works.
Thank you for the Suport!
Ok, glad to hear that!
Retrieving data ...