Forum Discussion
Altera_Forum
Honored Contributor
20 years agoIt doesn't look like the elf file is too big, dec is 301176. But I wonder what kind of performance you have gotten out of writing to the compact flash.
What is the function that in theory should be fastest? And is it faster to write for example 100 at a time than 1 byte? Is it so much overhead on the fprintf, fwrite and similar functions that it's not possible to even get close to 1 MB/s writing to the compact flash? I need to get some samples from a ADC via SPI and then write it to disk. 32000 samples from the ADC takes about 0.4 s and these are 16 bit samples. When I combine taking the samples and writing to disk, it uses about 1.4 seconds. That is 1 second to write 64000 byte to the compact flash. That's a little slow I think. I use the Nios II/f processor with hardware multiply in logic elements on an Cyclone chip at 50 MHz. Ole