Forum Discussion
naand
New Contributor
2 years agoNIOS II - FW doesn't work with compiler optimization turned on
Dear support team, I have a problem with the behavior of the firmware if the project is built in release mode with optimization enabled. The problem occurs during the write-to-flash routine. I u...
wwanalim_intel
Contributor
2 years agoHi Sir,
So far there is no official document or guide from us on how to disable the optimization for a specific block of code.
However, I found this which you can try.
https://programfan.github.io/blog/2015/04/27/prevent-gcc-optimize-away-code/
Thank you.