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,
We are glad that pragma is working.
Currently, this is the only optimization bug we are aware of. In the meantime, can we know what flash are you using? (the function will change based on flash vendor)
It seems using volatile not helping in here maybe the function is too small not because variable is optimized. Can you try this ?
By the way, can you share your pragma example? We are interested to understand how it is used.
Thank you.