Forum Discussion
Altera_Forum
Honored Contributor
19 years agoLoading data into memory
I'd like to load the SDRAM on my board (a DE2 board) with a specific file on my PC. As far as I can see there's no tool supplied that can accomplish this simply (I could probably mess around...
Altera_Forum
Honored Contributor
19 years agoWhy not read the file into your C code as a char array? There's a Perl script (that can be easily modified) shipped with the standalone version of LWIP that can do this for you.
Also, you could use the FS2 console (nios2-console, n2c) to upload data to memory. EDIT: one more thing... if you can tolerate always using Debug mode, then the host filing system is hands-down the easiest method. See the included software template/example for reference. Cheers, - slacker