MATLAB: Do I receive an error in the CCS project setup process when generating code from a model that contains a DM642 EVM Video Capture and Video Display blocks in Simulink 6.2 (R14SP2)

dm642evmfar_calls_and_datamemorymodelnear_calls_and_dataTarget Support Package TC2

When I build a model that contains the DM642 EVM Video Capture and Video Display blocks in Simulink 6.2 (R14SP2), I receive the following error in the Code Composer Studio IDE during the compilation process of the project as follows:
offset too large

Best Answer

The default memory model for TI C6000 Embedded targets is "Near_Calls_and_Data" as indicated in the TI C6000 compiler settings in the Real-Time Workshop Configuration Parameters dialog. For an algorithm only model, this provides the most efficient code execution. However, for DM642 EVM, addition of Video ADC / DAC blocks causes a link error with the default settings. Documentation on the Embedded Target for TI C6000 is missing information on setting the memory model configuration for models with DM642 EVM video capture and video display blocks.
Here is additional information:
When building a model with DM642 EVM Video Capture and Video Display blocks, this memory model should be set to "Far_Calls_and_Data" as follows:
1. Go to "Simulation -> Configuration Parameters -> Real-Time Workshop"
2. Select the TI C6000 Compiler option
3. Change the Memory Model to "Far_Calls_and_Data"