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.

Unknown error when i use Flash_Erase API func

Other Parts Discussed in Thread: TMS320F28335, CONTROLSUITE

Hi guys.

In advance I apologize for the poor knowledge of the English language.

I'm working with TMS320F28335.
When i use Flash_Erase Api func, it comes back  "1". For this Api func return codes are "0" if everything is all right, and from 20 to 24 if there is a mistake. I did all settings things that was written in datasheet  (TMS320F2833x Flash API), but result was the same.

And when I call Api functions Flash_APIVersion and Flash_APIVersionHex, Flash_APIVersion returns "0" and Flash_APIVersionHex returns "3". I don't know why it's happens...

Has anyone see it before and what i need to do?

Thanx, Michael 

  • Micheal,

    Did you try running the example Flash API for F28335 found in control suite? If you had installed control suite software using normal directory structure, you can find them in the following path:

    C:\ti\controlSUITE\libs\utilities\flash_api\2833x\28335\v210\example

    Running this example will help you understand how you need to use API.

    Regards,

    Manoj

  • Manoj,

    Yeah, i saw this exemple.  my own project is partially based on it. I took all settings (PLL, CSM, WatchDog and other) from the example.

    (All my project is the bootloader in the flash memory through SCI-B.  Everything is all right except Flash API)

    Regards,

    Michael.

  • Hello Michael!

    I can offer another version (workable) 6507.flash_example.zip.

    Regards,

    Igor

  • Igor,

    Tnx for regards.

    I forgot to say. I'm working in CCS v 3.3.

    Tnx for this version, but there is linker error ( placement fails for object "csmpasswds"  )
    Unfortunately I'm working with this microcontroller only few weeks,so I don't know how to fix this error

    Regards,

    Michael

  • Hi!

    Oddly. This project has been compiled successfully under v3.3 & v5.2 (not only for me but for others too) . Pay attention on this (from f28335_flash_prog.cmd):

    // For Code Composer Studio V2.2 and later
    // ---------------------------------------
    // In addition to this memory linker command file,
    // add the header linker command file directly to the project.
    // The header linker command file is required to link the
    // peripheral structures to the proper locations within
    // the memory map.
    //
    // The header linker files are found in <base>\DSP2833x_Headers\cmd
    //
    // For BIOS applications add: DSP2833x_Headers_BIOS.cmd
    // For nonBIOS applications add: DSP2833x_Headers_nonBIOS.cmd

    Regards,

    Igor

  • Igor.

    I included DSP2833x_Headers_nonBIOS.cmd file.

    Thanks for your trying to help me.

    I've already checked all the guessworks...and i do not know where to look...

    Regards,

    Michael