I have an extremely simple model, extracted from NXP MBDT GPIO example: a state machine toggling on and off, and a signal to a LED. I change the color of the LED between successful loads to confirm that a new executable has loaded in case I miss the brief timeout. A zip of the current, working version is attached.
The example model builds, deploys, and starts just fine. I copied the state machine and GPIO block into a new model, and added the board configuration block FROM THE MODEL LIBRARY -- so all default parameters. My model failed during the build, because of problems with the path initially, but then with a consistent error in build that no valid CPU was defined, and interrupt.h could not be found. Deploy failed, of course, with an error that there was no exec.
I put the configuration manager parameters boxes next to each other, between NXP's example and mine, and modified any parameter necessary to match the example exactly. The Target Configuration in the Block Parameters is set for OpenSDA, and the drive letter and label for the board are correct. All other parameters on all four tabs also match the example model. Still my model would not run, with the same set of errors as above.
More out of desperation than logic, I changed "mbd_s32k.tlc" in the Model Configuration Code Generation to "mbd_s32k14.tlc", and I got a different set of errors (which was refreshing). The errors are shown in the second file attached. So I changed it back to "mbd_s32k.tlc" and now it works.
To confirm this behavior, I used the right-click menu item to change all parameters back, and it still works. If I copy the block out of the library, it doesn't work until I change to "mbd_s32k14.tlc" and back again, without changing any other parameters, then it works.
A bug perhaps? Any way to avoid this annoying step?
Thanks, Nancy