For RTW code generation with MSVC tool chain, the system target file and Template makefile settings for RTW should be:
- grt.tlc
- grt_default_tmf
These are the default choices for an RTW build and they are the choices provided when the Generic Real-Time Target option is chosen in the System Target File Browser window.
DO NOT choose the "Visual C/C++ Project Makefile only for the "grt" target" from the System Target File Browser window. This results in system target file and Template makefile settings of:
- grt.tlc
- grt_msvc.tmf
These settings are for outputting files that can create a .mak file that can serve as input to Visual Studio. To quote the header in the resulting .mk file:
# Real-Time Workshop template makefile used to create <model>.mak# file needed for Microsoft Visual C/C++ environement. #
# Note that this template is automatically customized by the Real-Time
# Workshop build procedure to create "<model>.mk" which then is
# passed to nmake to produce <model>.mak Using grt.tlc with grt_msvc.tmf causes failures during the RTW build.
The message will be something like:
NMAKE : fatal error U1073: don't know how to make 'altiasfn.ofile' Stop.