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: TMS320F28335

Part Number: TMS320F28335
Other Parts Discussed in Thread: UNIFLASH

Greetings,

I am working on some HIL tests. I want to use TMS320F28335 as a controller for power electronic converters. The control algorithm development is done using MATLAB/SIMULINK as well as code generation and deployment. I am asking how to erase the flash memory sectors? Is it possible through MATLAB/SIMULINK? Or it is only possible through Code Composer Studio? I have read about on-chip memory programmer to erase flash memory. However, I could not do it since I believe CCS V 10.3.1 does not have that on-chip memory programmer. Please advise, and I would appreciate it if you attach some snapshots to clarify your suggested solution.

Sincerely

S.Pola

  • Thanks for reaching out to the E2E forums.  Flash programming is supported for this device in the Code Composer Studio IDE, I believe that Simulink is leveraging some of the IDE base commands in order to handle any flash memory operations as needed by the Simulink code.

    Let me know if this answers your question.

    Best,

    Matthew

  • Thank you Mathew for your reply.

    I could program the RAM and flash memory of F28335 using Simulink. It is relatively easy to be done. However, I still do not know to erase the flash memory and make sure all the memory sectors are empty. I was looking at some resources that are suggesting using the on-chip flash programmer. However, the CCS version that I have is 10.4.0 which I am not sure whether it supports the on-chip flash programmer or not. If you know about an alternative way to erase the flash memory please advise.

    Sincerely

    S. Pola

  • Saad,

    Thanks for the additional detail:

    1)The Flash tools that are invoked by the CCS IDE/MW tool, the default action is to erase all sectors before attempting to program the device.  If this has somehow gotten changed, the flash programmation would simply kick back an error that the .out/coff that is being loaded couldn't write/verify correctly.

    2)If you want to erase all sectors manually here are 2 options:

    a)Uniflash cloud: https://dev.ti.com/uniflash/

    Once you have established a connection go to "Setting and Utilities" in the left hand bar.  You should see the erase sector option

    b)CCS version that you have is capable as well.  You will need to connect to the target as normal(launch a debug session with a .ccxml target file) then go to Tools->On-chip Flash.  This will be up a new dialogue window with options to manually erase the sectors as well.

    Best,

    Matthew

  • Thank you for the provided details. I will try both of the described methods and let you know about the progress.

    Sincerely

    S. Pola