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.

  • Resolved

TMS320F28016: Erase part of the memory sector

Prodigy 10 points

Replies: 2

Views: 363

Part Number: TMS320F28016

Hello everybody,

I work on application with TMS320F28016. In TMS320F28016 should implemented two programs. The one boot program and second control program.
I have problem with space of memory TMS320F28016, maximal lenght of flash memory is 0x3FF8. My boot program has lenght 0x1200 and control program has lenght cca 0x2a00. I need one out of four sector to divide on two parts for erasing and programing.

Is it possible to erase only part of sector of memory DSP?
Is it possible to set borders of sector for erase function?
If yes, could you advise me, how to do it?

I reviewed API functions for TMS320F28016,mainly the function Flash_Erase(sector_mask, &erase_status), but this function is able to erase only entire sectors.

Thanks for advise.

  • Hello,
    I am writing to let you know that a C2000 team member has been assigned to this post and should be answering shortly.

    Regards
    Baskaran

    Note: If this post answers your question, please click the Verify Answer button below. Thank you!

  • RK,

    No, you cannot erase part of a sector.

    No, you cannot set boarders inside of a sector for the erase function.

    I am not a compiler expert, however some compiler options will affect code size, I would suggest you to try turning on some level of optimization. This can be done by going to Project Properties->Build->C2000 Compiler->Optimization.

    Regards,
    Cody

    Getting Started with the C2000 ePWM module

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.