Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers

compiler problem

Altera_Forum
Honored Contributor II
1,174 Views

Hello 

 

I had a C++ code running well on NIOS II IDE software. Then I upgraded the software and then the code was stucked in a loop of my code. I did not change anything in the code of course. 

 

So I just changed the optimization of the compiler settings ("optimize more") to "None" and now it works again. 

 

How is it possible? 

 

thank you
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
334 Views

NIOS forum is probably a better resource, and i think the problem may be related to embedded coding practices. global variables need to be volatile etc.

0 Kudos
Reply