I'm trying to "Build, Deploy, & Restart" the following example from the NXP S32K1xx MBD Toolbox:
Starting "Build, Deploy, & Restart" as follows:
It builds successfully, but I get the following error in the next phase Deploy, & Restart"
The file it complains cannot be found is plainly present in the build output folder:
I've also noticed the Model Properties has "PreLoadFcn" and "PostSaveFcn" defined:
The functions called are p-files that are not editable and that have no help available:
>> which mbd_s32k_examples_preload_cbk
>> help mbd_s32k_examples_preload_cbk
mbd_s32k_examples_preload_cbk is a script.
Could these toolbox function calls be responsible for properly setting the search path for the build?
What is their purpose? Are they required to run a model in extremal mode?
They the presence of these function calls is invisible, unless someone inspects Model Properties.
In any case, can anyone suggest how o troubleshoot or work-around the "Build, Deploy, & Restart" error?
Hello @rsating ,
To run External mode on the S32K144 you have to follow the next steps:
1. Go to Model Settings-> Code Generation -> interface. Make sure you checked the 'External mode', Select the serial transport layer In the MEX-file arguments, the second argument represents the Serial Com port, in my case is COM8.
2. Go to Monitor & Tune drop-down option and press the Build for monitoring option
3. Once the code has been deployed on the target, We need to connect to the target. For this step, please go to 'Control Panel' and in the External Mode Control Panel, press the 'Connect' button.
Hope this helps,