Forum Discussion
Altera_Forum
Honored Contributor
16 years agoCannot write on-chip memory with fread.
I use DE2-70 to develop my project. My uClinux is running in SDRAM, and I want to copy a file to on-chip memory, but there is only 0 in on-chip memory, the fread() function didn't work. can a...
Altera_Forum
Honored Contributor
16 years agoYou cannot use onchip_mem directly. Please read to a buffer, (dump/check it) then copy the content to the onchip_mem.
You should check return of every file functions, such as open/seek/read/close etc. - Hippo