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.

TMS320F28335: problem with flash api erase for f28335

Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE

hello,

i am debugging a bootloader software with code composer studio 9 for my tms320f28335. when i start the debug and invoke the flash api imported by the flash28335_api_v210.lib to erase the sector bcd (in which i want to put my new image) i see the code crash and the micro restarts. the error i get on the code composer studio is "c28xx: breakpoint manager: error enabling this function: this task cannot be accomplished with the existing aet resources". i compile the bootloader in debug mode and then click on load program and select the file debug.out. i als copy in the init part of the bootloader the flash api from flash to raml0 of f28335 and set afterwards the cpuscalefactor of the api.

can you help me to solve this problem?

thanks

 

  • Hi Marcello,

    Were you able to successfully execute the flash API usage example provided in C2000ware?

    Thanks and regards,

    Vamsi

  • hello,

    i used exactly the same settings for the linker and the software as reported in the example in c2000ware but it still does not work. the code crash after executing flash erase.

    is it possible that it depends on the linkage of the library flash28335_api_v210.lib to the ccs9 include options? could you send the me link option to link the library to the project that i have to put into the fields of ccs9:

    1) properties->ccs build-> c2000 linker -> file search path -> include library file or command file as input.

    2) properties->ccs build-> c2000 linker -> file search path -> add dir to library search path.

    thanks for the support and regards

  • Hi Marcello,

    Please take a look at the Flash API guide at the below directory within C2000WARE. It provides details on using / integrating the Flash API into your own application.

    C:\ti\c2000\C2000Ware_3_02_00_00\libraries\flash_api\f2833x\28335\docs\Flash2833x_API_Quickstart.pdf

    You said you've already included the below in your project for copying the API functions from Flash to RAM? This is a common mistake we see.

        // Copy the Flash API functions to SARAM
        Example_MemCopy(&Flash28_API_LoadStart, &Flash28_API_LoadEnd, &Flash28_API_RunStart);
    
        // We must also copy required user interface functions to RAM. 
        Example_MemCopy(&RamfuncsLoadStart, &RamfuncsLoadEnd, &RamfuncsRunStart);

    marcello ioppolo1 said:
    1) properties->ccs build-> c2000 linker -> file search path -> include library file or command file as input.

    Should include the Flash API lib file: "Flash28335_API_V210.lib"

    marcello ioppolo1 said:
    2) properties->ccs build-> c2000 linker -> file search path -> add dir to library search path.

    Should include this path to the lib file in some form: "C:\ti\c2000\C2000Ware_3_02_00_00\libraries\flash_api\f2833x\28335\lib"

    Best,

    Kevin