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: self Flash programming

Part Number: TMS320F28035
Other Parts Discussed in Thread: CONTROLSUITE

I am trying to find a way which will allow me to do flash programming. I will receive the firmware in hex bytes from serial. I was thinking to store the whole image into RAM and run any API to flash the own flash. 

But the question is how to the differentiate the sector of flash from hex file, How do I know what part of hex file goes where? 

  • Hi Daniel,

    Please refer the example from controlSUITE at "c:\ti\controlSUITE\device_support\f2803x\v130\DSP2803x_examples_ccsv5\flash_programming" to check on how to use flash API.
    Also refer, Section 4 at www.ti.com/.../spraal3.pdf

    While programming you can select which part of the sector is to be flashed. There you can select which part of the memory from the RAM can be flashed to the required sector.

    In RAM are you planning to store the whole image in contiguous memory and then flash?
    Or will the flashing happens dynamically as the data comes?

    Hope this helps.

    Thanks,
    Katta
  • Thanks Katta.
    My question is how to determine these sectors from HEX file or out file?
  • Daniel,
    please refer to the device boot ROM guide chapter 3, section 3.2 shows an example of a HEX file . The hex file has built-in information on where each block should be placed in memory and where the entry point is.

    www.ti.com/.../sprugo0b.pdf

    The below exmple from controLSuite should show you how it can be done using an SCI, probably very close to what you are looking for.
    C:\ti\controlSUITE\device_support\f2803x\v130\DSP2803x_examples_ccsv5\f2803x_flash_kernel

    This example parses the incoming hex file and programs flash as needed.

    Hope this helps.

    Best Regards
    Santosh Athuru