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.

write program to external flash

i want write my (.out)  to external flash via emif in c6416

& don't want use flash burn.i convert .out to .bin file

My question is ,how can i put my program code in flash without use flash burn

 can i fopen(.bin) file in ccs & write it to external flash via emif????

  • I'm not sure about the fopen method, but one way that you could do it (which is somewhat involved) is to use one of your communication peripherals (UART, Ethernet, etc) and then write a simple program on your PC to read the binary file (with fopen or whatever method you prefer) and send the data over the peripheral to your device piece by piece and consequently write that file to the EMIF. If you are using your UART and EMIF peripherals, you will eventually be implementing this sort of functionality anyway, so it kind of kills two birds with one stone.

    There is possibly an easier way to do this however, haha.

  • James,

    Flashburn goes through several basic steps or operations to perform the Flash programming. It was written so you can have an application and a user interface that make it easy to program Flash for a variety of TI DSPs and a variety of Flash devices. We want things to be as easy for you as possible, and we want to make sure there is a way for you to do this programming which is vital for many users of the TI DSPs.

    But you always have the option of doing all the engineering work yourself. For someone who is experienced with the DSP, experienced with the CCS environment, and experienced with programming algorithms for Flash devices, this job is a matter of writing and testing your original code. If someone does not have all of those experiences already, there will be a lot of time spent designing and developing your original code.

    James Camron said:
    can i fopen(.bin) file in ccs & write it to external flash via emif?

    Yes, that is the basic statement of the Flash programming process.

    No, it is not that simple.

    Start by reading the datasheet for your Flash device. You will have to understand the requirements for programming that device, and then you will have to implement the algorithm that they describe in that datasheet.

    There are problems along the way that have already been solved in the development of Flashburn. You will have to solve those problems again, after first finding those problems yourself in a long sequence of writing, testing, confirming, and repeating.

    I admire your willingness to take on a lot of extra work. It is not going to be easy to get this done, but you will have something great to offer the community after you are done, if you are willing to do that.

    Regards,
    RandyP

  • I also need to do some flash programming and have a reasonable idea what is involved. It would be convenient to use something like "Flashburn" which TI is directing us to. But this turns out to be a restrictive and secretive GUI program, and if you thought of buying the non-free version it would cost quite a lot. Basically that program does very little so I think you should remove the restrictions and you might as well provide the relevant parts of the source code (not the GUI, just what is relevant) like you do with a lot of other tools. I think I could write something myself in a day or two but I don't want to spend that time really.

    Thanks for considering my friendly complaint/suggestion.