Forum Discussion
Altera_Forum
Honored Contributor
21 years ago --- Quote Start --- originally posted by svhb@Dec 27 2004, 02:16 PM i don't know enough about your exact requirement, but anyway an answer :
maybe easier to put the contents of the file in a static char array and link it with the executable. you can find a lot of tools to generate a source file with the binary content of a file, or writr yourself (it is not so difficult).
this will be downloaded then toghether with the other source code of yout program through the jtag link.
if the address location of the data is importand, you can use an attribute to lock it down the address you want.
of course wth this, you can only write ram that the processor can reach. if you need to write to free standing memory (for example on chip ram in some peripheral that is not connected to the processor), you can try to make it dual ported, and connect the second port to the processor bus.
stefaan --- Quote End --- For a test I've to download a new FPGA-image and/or application onto the EPCS serial flash on my own (thus not using the Flash Prog. tool). As you mention, I world have the download include in the source files. Unfortunely the content of the EPCS flash is not large enough to hold the current application and the new download. I think that the only option is to input the download thru an external input port (jtag uart or whatever). But then I have to do more workt make it working...