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.

TMS320F28035: flashapi

Part Number: TMS320F28035
Other Parts Discussed in Thread: CONTROLSUITE

Dear all,

1.Is it necessary to use the initflash function after calling the flash api function?

2.Whether it can be designed, wipe a piece of area in the initialization process, and then write part of the data,


In the main program running, if mcu receives the serial data, then write some data according to the serial data (do not erase)


I want to write part of the calibration data into the flash, but I don't know if I will need to erase the flash again before I can write it. This also erases the written data.

3.In the document corresponding to the controlSUITE.

controlSUITE\libs\utilities\flash_api\2803x\v100a\doc

Should I use Method A? Which of the Method B? Method C?Method D?

  • Han,

    1) InitFlash function is mandatory to be executed. This function initializes flash control registers

    2) InitFlash by itself doesn't erase (or) wipte out a data in initalization process.

    If you wish you erase earlier calibration data and re-program new calibration data, you have to assign a whole flash sector for calibration data because smallest amount of memory that can be erased is one flash sector.

    If you don't want to assign one complete flash sector, you can be keep adding new calibration data without erasing earlier calibration data and move calibration pointer to new calibration data.

    3) Four methods A / B / C / D mentioned are the different options available. From your requirement, I feel method A / B / D would serve your needs.

    Example code available in controlSuite show cases method A and method D. If you feel either of these methods fits your needs i would suggest you to choose one which best fits your needs.

    C:\ti\controlSUITE\libs\utilities\flash_api\2803x\v100a

    Regards,
    Manoj