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.

CCS/TMS320F28069F: Copy from USB to Internal Flash

Part Number: TMS320F28069F
Other Parts Discussed in Thread: CONTROLSUITE

Tool/software: Code Composer Studio

I finally got my code to load the USB driver, navigate to the proper folder.
1) can I take the .out file and directly load it? Is there a binary file I need to get instead which will allow me to load directly into the internal flash?

2) How do I take the contents of the file and reprogram the internal flash?

  • 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
  • Any updates going on with this topic?
  • Parag,

    Please check this document www.ti.com/.../sprabv4b.pdf

    Regards,
    Manoj
  • Manoj, this document is great if I wanted to utilize a true bootloader. My question is related to programming the internal flash from a running program. Here's the scenario:
    1) I have a programming running on the TMS320F28069F. I am adding code that will read from a USB drive.
    2) The code that is being added will be executed before the while (1) loop in the main() routine. The idea is that when the device needs to be re-programmed, the device will be reset and then my new piece of code, will detect a new image on the USB drive
    3) I want to be able to read the new image (.hex) from the USB and then program the TMS320F28069F with the new image.

    Is step 3 possible, and if so, is there a RAM routine that I would write to program the internal flash? Do you have an example of a routine to erase the internal program flash, and then to copy the image from the RAM (or directly from the USB)
  • Should I be looking at implementing a subset of the f28069_flash_kernel example? I'm worried that I would still have to manipulate the compiled code to ensure that there are checksum values at the end of blocks. 

    Am I complicating things here, or do I not understand a fundamental part of self-programming this device?

  • Parag,

    If you are able to read the USB drive and update the new hex contents in RAM. You can probably use this example code as reference to erase the old code and program the new code in flash using this example.

    Example code \ Project: <controlSUITE>\libs\utilities\flash_api\2806x\v100a\Example_Flash2806x_API
    Documentation : controlSUITE\libs\utilities\flash_api\2806x\v100a\doc

    Regards,
    Manoj