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.

Code Composer doesn't compile the Flash API example for F28M35 device

Other Parts Discussed in Thread: CONTROLSUITE

Hi everybody, I'm trying to use the Flash API example found in the Control suite folder for the F28M35x devices. I've imported the project in CCS for both the M3 core and the C28 core. II've linked to the M3 example project the F021_API_CortexM3_LE.lib and the F021_Concerto_Cortex.h files (they are not included in the original example project, I was wondering why), but when i try to build the project, the compiler returns two times the error: "Could not open source file "F021_Concerto_Cortex.h"". The same thing happens with the C28 example project  with the C_28 lib files included, which returns: "Could not open source file "F021_Concerto_C28x.h"". The files the compiler can not open are in the main folder of the same project.

Could someone help me please to understand what is going wrong? Thank you in advance

Best regards,

Filippo

  • Hi,

    Can you verify that your include paths are correct or not? You can check the same in Project properties under compiler section.

    Regards,
    Gautam
  • I think the include paths are correct. The problem is this: in the original example project neither file lib, nor the header files are included. Example project is for v100, but in v100 folder there aren't Flash API files. I've included the Flash API from v206 folder as the Readme.txt tells:

    The latest Flash API libraries for F28M35x have been relocated to a new location.

    Flash API library directory path:
    ~\controlSUITE\device_support\F28M35x\<latest_version>\F28M35x_common\lib

    Flash API headers directory path:
    ~\controlSUITE\device_support\F28M35x\<latest_version>\F28M35x_common\include\FlashAPI

    I've read the documentation of the API and I've discovered thath v2.06 of the API is not compatible with M3 core, but when i try to download F021 API for v1.x, TI website redirect me to the download link for Control Suite which i already have and doesn't contain these files. How can i download it, or how can I overcome this problem? Thank you in advance.

    Regards

  • Hi,

    (1) Flash API example:  

    Initially, the Flash API examples used to be at C:\TI\controlSUITE\libs\utilities\flash_api\f28m35x folder for F28M35x similar to other devices.  Hence the Flash API header files (including F021_Concerto_Cortex.h and F021_Concerto_C28x.h) were placed at C:\TI\controlSUITE\libs\utilities\flash_api\f28m35x\Include\F021.  And the Flash API libraries were placed at C:\TI\controlSUITE\libs\utilities\flash_api\f28m35x\Libraries.  

    Later, our software team decided to move the Flash API examples to device specific device support folders and hence the examples are now at C:\TI\controlSUITE\device_support\f28m35x\vx\F28M35x_examples_Dual\flash_prog.

    Flash API Header files are moved to C:\TI\controlSUITE\device_support\f28m35x\vx\MWare\inc\FlashAPI for M3 and C:\TI\controlSUITE\device_support\f28m35x\vx\F28M35x_common\include\FlashAPI for C28x.

    Flash API libraries are moved to C:\TI\controlSUITE\device_support\f28m35x\vx\MWare\lib for M3 and C:\TI\controlSUITE\device_support\f28m35x\vx\F28M35x_common\lib for C28x.

    Please use the latest Flash API examples available at C:\TI\controlSUITE\device_support\f28m35x\v206\F28M35x_examples_Dual\flash_prog.

    (2) Flash API web page:

    When you go to http://www.ti.com/tool/f021flashapi webpage, for C2000 devices, you will be directed to Controlsuite page since Flash API libraries are now part of device support folders.  Looks like you are referring to the API version V2.0x given for Hercules device (you might have clicked on GetSoftware button next to HERCULESF021FLASHAPI).  V2.0x Flash API provided in the Hercules device folder does not support C2000.  For C2000 devices, please use the Flash API libraries available at the folders I mentioned above.  

    (3) API version and documentation:

    For F28M35x devices, the version of the API libraries (F021_API_C28x.lib, F021_API_C28x_FPU32.lib and F021_API_CortexM3_LE.lib) available at above mentioned folders should be V1.52.  Flash API documentation available at C:\TI\controlSUITE\device_support\f28m35x\v206\doc\FlashAPI_Doc is applicable for F28m35x as well.  Documentation refers to V1.53 and V1.54 since we added F2837xD Flash API libraries in V1.53 and V1.54 later.  

    Please let me know if you have any questions.  I will ask our software team to check the issues that you mentioned for Flash API usage example in V100 folder (or I might ask them to remove it from there since we moved the examples to device specific folder and are working fine).  

    Thanks and regards,

    Vamsi

  • Hi Vamsi, thank you for your answer,

    I found the example project at C:\TI\controlSUITE\device_support\f28m35x\v206\F28M35x_examples_Dual\flash_prog. and tried to use it. I had to download ARMv5.1 compiler and C2800 fromHelp->Install new software. Now CCS compile the project and create the .out file, but when i try to load it on the Concerto control card for F28M35H52C1, the debugger goes automatically in running, but is not debugging the code. Is that version of code compatible with my hardware? I am using the C2000 Concerto control card with F28M35H52C1 with the docking station USB-EMU R3. If it is not how can I overcome that problem?

    Thank you in advance and regards,
    Filippo
  • Vamsi,

    I just solved the issue using Code Compose v6.1. Now the project example works fine. Is it anything wrong with Code Composer Studio v5.x?