This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS320F28335: Boot Flash programming F28335 docking station of Simulink model

Part Number: TMS320F28335

Tool/software: Code Composer Studio

Hello,
I'm running simulink models on an TI C2000 F28335 experimenter kit. The code runs in ram setting. I want to load the program in Rom Flash memory. How to load the simulink code in Flash memory.
I expect it ot run, when the power supply is taken away and then reapplied, but the code doesn't start running. Therefore, no standalone operation is possible. What's the procedure? Any document or video tutorial would be good. Thanks in advance.
Matlab 2015a
CCS v5
Regards, 
Logee
  • Hello,

    A Mathworks expert has been assigned to assist.

    Best regards

    Chris

  • Hi,

    Please refer the below picture on option to configure for boot from flash.

  • Greetings venkatesh, 

    I selected ert.tlc in system target file, which enables to choose Boot from Flash option. But i encounter a following error. How to rectify.

    ### Invoking Target Language Compiler on NewCCSV5pwm.rtw
    ### Using System Target File: C:\Program Files\MATLAB\MATLAB Production Server\R2015a\rtw\c\ert\ert.tlc
    ### Loading TLC function libraries
    Warning: The data type "int8" uses a word size that is not available on the intended target.
    Fixed-point signals using this data type will be put inside a larger word or multi words. When used,
    extra software will be generated to force this larger word or multi words to emulate a smaller
    word. This emulation is helpful when your prototype target and your final
    production target are not the same. If the smaller word size does NOT exist
    on the final production target, then consider increasing the word size to
    one that is supported.
    Warning: The data type "uint8" uses a word size that is not available on the intended target.
    .
    Warning: The data type "boolean" uses a word size that is not available on the intended target.
    ### Initial pass through model to cache user defined code
    ### Caching model source code
    ### Writing header file NewCCSV5pwm.h
    ### Writing header file NewCCSV5pwm_types.h
    ### Writing header file rtwtypes.h
    ### Writing source file NewCCSV5pwm.c
    ### Writing header file NewCCSV5pwm_private.h
    .
    ### Writing source file NewCCSV5pwm_data.c
    ### Writing source file ert_main.c
    ### TLC code generation complete.
    ### Evaluating PostCodeGenCommand specified in the model
    ### Using toolchain: Texas Instruments C2000 Code Generation Tools v5.2.12 | gmake (64-bit Windows)
    ### Creating 'F:\NewCCSV5pwm_ert_rtw\NewCCSV5pwm.mk' ...
    ### Using toolchain: Texas Instruments C2000 Code Generation Tools v5.2.12 | gmake (64-bit Windows)
    ### Creating 'F:\NewCCSV5pwm_ert_rtw\NewCCSV5pwm.mk' ...
    ### Building 'NewCCSV5pwm': C:\PROGRA~1\MATLAB\MATLAB~1\R2015a\bin\win64\gmake -B -f NewCCSV5pwm.mk all
    F:\NewCCSV5pwm_ert_rtw>cd .

    F:\NewCCSV5pwm_ert_rtw>if "" == "" (C:\PROGRA~1\MATLAB\MATLAB~1\R2015a\bin\win64\gmake -B -f NewCCSV5pwm.mk all ) else (C:\PROGRA~1\MATLAB\MATLAB~1\R2015a\bin\win64\gmake -B -f NewCCSV5pwm.mk )
    C:/ti/ccsv5/tools/compiler/C2000_~1.0/bin/cl2000 --compile_only --large_memory_model --cla_support=cla0 --silicon_version=28 --define="LARGE_MODEL" -i"/~SupportFiles/DSP280x_headers" -i"/~SupportFiles/DSP280x_headers/include" -i"C:/ti/ccsv5/tools/compiler/C2000_~1.0/include" -v28 --float_support=fpu32 -ml -DMODEL=NewCCSV5pwm -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DSTACK_SIZE=512 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DRT -DSTACK_SIZE=512 -DMODEL=NewCCSV5pwm -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IF:/NewCCSV5pwm_ert_rtw -IF:/ -IF:/Matlab DSP -IF: -IC:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include -IC:/PROGRA~1/MATLAB/MATLAB~1/R2015a/simulink/include -IC:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src -IC:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/ert -IC:/MATLAB/SupportPackages/R2015a/texasinstrumentsc2000/toolbox/target/supportpackages/tic2000/inc -IC:/PROGRA~1/MATLAB/MATLAB~1/R2015a/toolbox/shared/can/src/scanutil -IC:/MATLAB/SupportPackages/R2015a/texasinstrumentsc2000/toolbox/target/supportpackages/tic2000/src -IC:/PROGRA~1/MATLAB/MATLAB~1/R2015a/toolbox/target/extensions/processor/tic2000/include -IC:/PROGRA~1/MATLAB/MATLAB~1/R2015a/toolbox/rtw/targets/common/can/blocks/tlc_c --output_file="MW_c28xx_board.obj" "F:/NewCCSV5pwm_ert_rtw/MW_c28xx_board.c"
    [DSP.]
    >> WARNING: more than one source file is specified; option --output_file is ignored
    Fatal error: cannot open source file "DSP"
    1 catastrophic error detected in the compilation of "DSP".
    Compilation terminated.

    >> Compilation failure
    gmake: *** [MW_c28xx_board.obj] Error 1

    F:\NewCCSV5pwm_ert_rtw>echo The make command returned an error of 2
    The make command returned an error of 2

    F:\NewCCSV5pwm_ert_rtw>An_error_occurred_during_the_call_to_make
    'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
    operable program or batch file.

    ### Build procedure for model: 'NewCCSV5pwm' aborted due to an error.

    Error(s) encountered while building model "NewCCSV5pwm":
    ### Failed to generate all binary outputs.
    Component: Simulink | Category: Model error

  • Hi,

    There is a path -IF:/Matlab DSP which is part of build and has space in it.

    Hence the error: Fatal error: cannot open source file "DSP" 

  • Hi Venkatesh, 

    Thanks for pointing out, but could you help me to correct it. 

    Regards,

    Logeesan

  • Hi, 

    I removed the space between the file name (F:Matlab DSP >> F:MatlabDSP). The build is successful. Thanks for helping me out.

    I close this thread.