Forum Discussion
Altera_Forum
Honored Contributor
8 years agoBare metal application on Cyclone V too slow - DE10-Nano
Hello all, I'm trying to develop some bare metal application in C using DS-5 with arm-altera-eabi-gcc with the DE10-Nano (ARM Cortex A9) but after some time developing the code I realized that ...
Altera_Forum
Honored Contributor
8 years agoFirst of all I'll make sure sdram access is cached.
Try to read bytes from sdram and extract the bit afterwards with something like this:
for(test = 0; test < 307200; test+= 8) {
pixel8 = get8PixelLevels(test);
for (bit = 0; bit<8; bit++) {
test2 = pixel8 & 1;
pixel8 >>= 1;
}
} If this way you experience a great improvement in speed, then the problem is with sdram access.