[Solved] Help with adding files to memory of the SoC
Topic starter 26/09/2023 3:27 pm
I want to upload some files to the SoC's memory to latter be processed. Is there any guide available to help me do that with rvfpga?
28/09/2023 12:26 pm
There would be two options, one simpler but less flexible, and one more complex but also more flexible.
- Simple option: you can integrate the contents of your file into your executable. You have a good example of this procedure in Lab 4, where we include the image to process in the C program itself. Also, in Labs 13 and 20, we load data into the DCCM via the ldscript.
- Complex option: you can use OpenOCD to load files into your memory. It should not be difficult to find information in the Internet. Besides, in Appendix A of the GSG, you can find information about how to use the tools from the command line, which can also give you some insights.
Let us know if this helps.
Topic starter 28/09/2023 1:30 pm
Thank you for your help. Creating a c file with the data should be enough.