Hi!
I found an error when using the read register block for S32K142 platform.
The block when opening it tries to search for the list of .mat files in the wrong device folder.
This can be fixed with a work around by just copying the files to that location.
Extra note: If this block is used in 2021b, a new error triggers with less feedback, which I cannot solve. due to .p files. However, by clicking OK, the block appears to be usable, but I don't know if the output in code generation will be correct. This extra note links to: Compatibility issue list for matlab R2021b
error message when running the initialization command of the mask:
>> mbd_s32k_rw_register_init;
Error using fgets
Invalid file identifier. Use fopen to generate a valid file identifier.
Error in fgetl (line 32)
[tline,lt] = fgets(fid);
Error in mbd_s32k_get_periph_clock_list
Error in mbd_s32k_rw_register_init