When I try to simulate in external mode (connecting to a QNX target) I get the following error message (after a rebuild).
The model that you are trying to run in External mode does not match the application running on your target. Checksum test (TARGET_DATA_MAP) failed. The host model's structural checksum is [1038344332, 770696832, 3087214867, 2593530883] and the target application's structural checksum is [2557921303, 471944455, 2932109082, 2461827081]. Rebuild the model, run it on your target, and start External mode simulation again.
Rebuilding doesn't fix the issue. Also removed slprj and other model related files from the host as well as the target.
Also another interesting thing I noticed is that when I ran another Simulink model on the same target, it worked fine. But then I applied the same (custom) system target file (with a few code generation optimizations like inlining and block reduction), then rebuilt and deployed to the target and tried to rerun in external mode, I see the same error about checksum mismatch.?
Is it possible that the code generation settings is optimizing out certain atifacts of the model in the generated code and hence the checksum mismatch?