Forum Discussion
Altera_Forum
Honored Contributor
21 years agoI 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