Notifications
Clear all

[Solved] Help with adding files to memory of the SoC

 

(@Anonymous 14934)
Active Member Guest
Joined: 1 year ago
Posts: 11
Topic starter  

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?


   
QuoteUnsolved
dchaver
(@dchaver)
Member Admin
Joined: 4 years ago
Posts: 92
 
Hi Rui,
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.
Best regards,
Dani

   
ReplyQuote
(@Anonymous 14934)
Active Member Guest
Joined: 1 year ago
Posts: 11
Topic starter  

Thank you for your help. Creating a c file with the data should be enough.


   
RCWO reacted
ReplyQuote