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.

F021 Flash API Version 2.01.01

Other Parts Discussed in Thread: CONTROLSUITE

Where is F021 Flash API Version 2.01.01?

I have latest controlSUITE v3.3.9. In this version included F021 v1.0

/*--------------------------------------------------------*/
/* F021\F021.h                                            */
/*                                                        */
/* Copyright (c) 2009-2011 Texas Instruments Incorporated */
/*                                                        */
/* F021 Flash API v1.00                                   */
/*--------------------------------------------------------*/

Where is F021 Flash API Version 2.01.01?

  • Juvf,

    Flash API Version 2.01.01 is not applicable for C2000 devices.

    What is the device for which you need the Flash API?  

    Thanks and regards,
    Vamsi 

  • f28m35h52c1

    I can see in "F021 Flash API Version 2.01.01 Reference Guide"

    "Introduction
    The F021 Flash API is a library of routines that when called with the proper parameters in the proper
    sequence, erases, programs, or verifies Flash memory on Texas Instruments microcontrollers using the
    F021 (65nm) process. On ARM Cortex devices, these routines must be run in a privileged mode (a mode
    other than user) to allow access to the Flash memory controller registers"

    I can not see in Reference Guide "Flash API Version 2.01.01 is not applicable for ARM Cortex in F28M35xx devices. You should to use version 1.0".  Why there is not list of support devices in Reference Guide?

  • Juvf,

    If you go to the Flash API web page (http://www.ti.com/tool/f021flashapi), you will see separate rows for C2000F021FlashAPI and HerculesF021FlashAPI.  In the description column, you can see the list of devices that are supported with C2000F021FlashAPI.  This includes F28M35x. 

    If you click on the Get Software button for C2000F021FlashAPI , you will be directed to Controlsuite download page.  You can find API reference guide for F28M35x at http://www.ti.com/lit/pdf/spnu595

    Flash API version used for F28M35x devices is V1.53.  

    Once you install Controlsuite, you can find Flash API libraries for M3 and C28x at below paths respectively:

    C:\ti\controlSUITE\device_support\f28m35x\vx\MWare\lib

    C:\ti\controlSUITE\device_support\f28m35x\vx\F28M35x_common\lib

    You can find Flash API usage example for M3 and C28x at C:\ti\controlSUITE\device_support\f28m35x\vx\F28M35x_examples_Dual\flash_prog.

    Please go through the example and let me know if you have any questions.

    Regards,
    Vamsi

         

     

  •  You can find API reference guide for F28M35x at http://www.ti.com/lit/pdf/spnu595.

    Flash API version used for F28M35x devices is V1.53. 

    1)You're right, reference guide for V1.53. But version of Flash API libraries included in Controlsuite is V1.0. Why?

    /*--------------------------------------------------------*/
    /* F021\F021.h                                            */
    /*                                                        */
    /* Copyright (c) 2009-2011 Texas Instruments Incorporated */
    /*                                                        */
    /* F021 Flash API v1.00                                   */
    /*--------------------------------------------------------*/


    2) I set the search string "Flash API" on ti.com. I found link to reference guide for V2.01.01. V2. Version 2 is newer version 1. Why there is not list of support devices in the RG of V2? 


    3)There is error in RG V 1.xx: section 3.8.3 Fapi_setupBankSectorEnable()

    Sample Implementation
    #include “F021.h”
    Fapi_StatusType Fapi_setupEepromSectorEnable(void)
    {
    /* Enables/disables sectors 0-15 for bank and sector erase */
    Fapi_GlobalInit.m_poFlashControlRegisters
    ->FsmSector.FSM_SECTOR_BITS.SECT_ERASED = 0;
    /* Enable sectors 0-15 for erase and programming */
    Fapi_GlobalInit.m_poFlashControlRegisters->Fbse.u32Register = 0xFFFF;

    Why name of function is Fapi_setupEepromSectorEnable()? Must be Fapi_setupBankSectorEnable(). Where is return value? Where is operator return in example? Where is "}"?

  • Juvf,

    1) Files that did not change from earlier versions were left as is so that users can easily identify the changes made.  

    2) When I set your search string on the ti.com, the first webpage that showed up is http://www.ti.com/tool/f021flashapi .  This is the one that I pointed earlier to you.  This page mentions that the Hercules Flash API is applicable to all Hercuels devices.  If you have any question with resepect to V2.01.01, please post the question on Hercules TI forums at https://e2e.ti.com/support/microcontrollers/hercules/f/.  

    I will also put a word to the Hercules team about your question. 

    3) Thank you for notifying us about this.  I will get it corrected.  Note that F28M35x users are not supposed to edit the function Fapi_setupBankSectorEnable() provided in Fapi_UserDefinedFunctions.c file.

    Please go through the flash programming example that I referred in the Controlsuite earlier.  

    Thanks and regards,

    Vamsi