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/LAUNCHXL-F28069M: General question // problems with MATLAB configuration

Part Number: LAUNCHXL-F28069M
Other Parts Discussed in Thread: CONTROLSUITE, TI-CGT

Tool/software: Code Composer Studio

Hello everyone!

I want to control an inverter to drive an induction machine using the TI-Launchpad LAUNCHXL-F28069M and code generation from Simulink and I have a few questions:
1.) Is it possible to access and use the InstaSPIN-MOTION functions of the MCU when programming with Simulink?

I already face some problems when trying to set up the configuration: I am using MATLAB R2015b and I installed CCSv6 and the controlSUITE from TI as well. When I want to set up the environment with the "checkEnvSetup" command, the most recent supported version is mentioned as CCSv4.
2.) Do I have to use CCSv4 when programming with MATLAB R2015b? Or would you rather recommend using the newest MATLAB-release together with CCSv6 (or the newest release CCSv7)? Or is there no problem if I use CCSv6 with R2015b?

An additional problem when setting up the environment is the DSP/BIOS directory: I simply do not find any subdirectory having a "bios"-string in its name in the installation directory of CCS.
3.) Where can I find the directory?

I would be glad if you could help me, please. I will attach the text from the MATLAB command window (resulting from the "checkEnvSetup" command) below.

Best regards,
Armin

Text from the MATLAB command window:

checkEnvSetup('ccsv4', 'F28069')

1. Checking CCSv4 (Code Composer Studio) version
   Required version: 4.0.0 to 4.2.0
   Required for    : Code Generation
   Your Version    : 1252
   ### Setting environment variable "TI_DIR" to "C:\TI_CCSv6\ccsv6"
   The version found for "CCSv4" differs from the one used for our software validation. Use it at your own risk.

2. Checking CGT (Texas Instruments C2000 Code Generation Tools) version
   Required version: 5.2.1 to 5.2.3
   Required for    : Code generation
   Your Version    : 8.1.1
   ### Setting environment variable "C2000_CGT_INSTALLDIR" to "C:\TI_CCSv6\ccsv6\tools\compiler\ti-cgt-c6000_8.1.1"
   The version found for "CGT" differs from the one used for our software validation. Use it at your own risk.

3. Checking DSP/BIOS (Real Time Operating System) version
   Required version: 5.33.05 to 5.41.09.34
   Required for    : Code generation
   Your Version    : NOT FOUND
   The required version of DSP/BIOS is not found in C:\TI_CCSv6\ccsv6\ccs_base\c2000
   Following environment variable(s) required for code generation could not be set:
   ### "CCSV4_DSPBIOS_INSTALLDIR"

4. Checking XDC Tools (eXpress DSP Components) version
   Required version: 3.16.02.32 or later
   Required for    : Code generation
   Your Version    : NOT FOUND
   The required version of XDC Tools is not found in $(XDCROOT)

5. Checking 2806x C/C++ Header Files version
   Required version: 1.36
   Required for    : Code generation
   Your Version    : 1.51
   ### Setting environment variable "DSP2806x_INSTALLDIR" to "C:\TI_ControlSUITE\device_support\f2806x\v151"
   The version found for "2806x C/C++ Header Files" differs from the one used for our software validation. Use it at your own risk.

6. Checking Flash Tools (TMS320F2806x Piccolo(TM) Flash API) version
   Required version: 1.00
   Required for    : Flash Programming
   Your Version    : 1.00a
   ### Setting environment variable "FLASH_2806X_API_INSTALLDIR" to "C:\TI_ControlSUITE\libs\utilities\flash_api\2806x\v100a"
   The version found for "Flash Tools" differs from the one used for our software validation. Use it at your own risk.

  • Hello,
    I am writing to let you know that a C2000 team member has been assigned to this post and should be answering shortly.

    Regards
    Baskaran
  • Update concerning question 3: In the meantime I managed to find the DSP/BIOS directory. I selected the directory "bios_6_46_05_55" which MATLAB seems to accept. But there is still the problem that MATLAB does not find XDC Tools. I installed them together with CCS and there is also a folder named "xdctools_3_32_01_22_core" in the directory of CCS. But MATLAB does not find it. In fact, MATLAB does not even ask me to set the path for XDC Tools. The message about not finding XDC Tools follows directly after I set the path for DSP/BIOS. As you can see in the output below:

    3. Checking DSP/BIOS (Real Time Operating System) version
       Required version: 5.33.05 to 5.41.09.34
       Required for    : Code generation
       Your Version    : 6.46.05.55
       ### Setting environment variable "CCSV4_DSPBIOS_INSTALLDIR" to "C:\TI_SysBIOS\bios_6_46_05_55"
       The version found for "DSP/BIOS" differs from the one used for our software validation. Use it at your own risk.
    
    4. Checking XDC Tools (eXpress DSP Components) version
       Required version: 3.16.02.32 or later
       Required for    : Code generation
       Your Version    : NOT FOUND
       The required version of XDC Tools is not found in $(XDCROOT)

    I hope someone can help me with this problem.

    Best regards,

    Armin

  • Hi Armin,

    MATLAB / CCS compatibility table is here: http://processors.wiki.ti.com/index.php/MatLab_and_CCS. I would use CCSv6 with R2015b, as we don't yet support CCSv7 - and when we do, it wont be backported to older releases.

    You can type targetupdater at the MATLAB command line to get back to the C2000 Support package configuration screens (may work for XDC Tools issue).

    -Brian

  • Thanks for the help! I will try the "targetupdater" command soon. Meanwhile I fixed the XDC Tools issue by manually setting the path for the variable XDCROOT in the environment variables of Windows.

  • Hello again,

    I have another problem concerning Simulink Coder. I wanted to compile a simple Simulink model to run it on the F28069M (the model should only toggle a GPIO pin every half a second).

    In the Model Configuration I already chose all the right options: I selected the right target hardware, chose the mode "Build, load and run" and I also checked the option "Boot from flash". But Simulink only seemed to build the C code without running it on the MCU. There was not even an error when I clicked on "Build" and had the MCU disconnected.

    Then I deactivated the checkbox "Generate code only" in the Simulink preferences and now Simulink seems to do what I want. But everytime I am trying to build the model, an error occurs in the Diagnostic Viewer:

    C:/TI_CCSv6/ccsv6/tools/compiler/TI-CGT~1.1/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_CCSv6/ccsv6/tools/compiler/TI-CGT~1.1/include" -v28 -ml --float_support=fpu32 -DMODEL=Toggle_Pin_J1_Nr5 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DONESTEPFCN=1 -DTERMFCN=0 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=1 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DSTACK_SIZE=512 -DONESTEPFCN=1 -DTERMFCN=0 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=1 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DRT -DSTACK_SIZE=512 -DMODEL=Toggle_Pin_J1_Nr5 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Armin/Documents/MATLAB/Toggle_Pin_J1_Nr5_ert_rtw -IC:/Users/Armin/Documents/MATLAB -IC:/PROGRA~1/MATLAB/extern/include -IC:/PROGRA~1/MATLAB/simulink/include -IC:/PROGRA~1/MATLAB/rtw/c/src -IC:/PROGRA~1/MATLAB/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/rtw/c/ert -IC:/MATLAB_Packages/texasinstrumentsc2000/toolbox/target/supportpackages/tic2000/src -IC:/PROGRA~1/MATLAB/toolbox/target/extensions/processor/tic2000/include -IC:/PROGRA~1/MATLAB/toolbox/rtw/targets/common/can/blocks/tlc_c -IC:/MATLAB_Packages/texasinstrumentsc2000/toolbox/target/supportpackages/tic2000/inc -IC:/TI_ControlSUITE/device_support/f2806x/v151/F2806x_common/include -IC:/TI_ControlSUITE/device_support/f2806x/v151/F2806x_headers/include -IC:/PROGRA~1/MATLAB/toolbox/shared/can/src/scanutil --output_file="MW_c28xx_board.obj" "MW_c28xx_board.c"
    The command "C:/TI_CCSv6/ccsv6/tools/compiler/TI-CGT~1.1/bin/cl2000" is either written wrong or could not be found.

    As I said almost two weeks before: The configuration of the Embedded Coder Package was successful and I set every path to the TI software components correctly. Why does Simulink suddenly need the path "C:/TI_CCSv6/ccsv6/tools/compiler/TI-CGT~1.1/bin/cl2000" which I never specified during the setup?

    Could someone help me resolving this problem?

    Best regards,

    Armin

  • Hi Armin,

    This issue is on the MathWorks side, and I haven't run across this before. Please contact MathWorks technical support for assistance.

    Thanks,

    -Brian