Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12603 Discussions

Have you ever met this strange problem?

Altera_Forum
Honored Contributor II
950 Views

Hi, everyone 

Have you ever met this strange problem? I have use Q2 5.0 and NIOS IDE 5.0 to develope my project. My program is running in CFI flash and my FPGA is EP1C12Q240. A simple program is this: 

float a = 2100; 

main() 

...... 

This program is running properly. But when I change the variable "a" 's initial value to 10500, the program became this: 

float a = 10500; 

main() 

...... 

The program DONT RUN!!!. And the program did not optimize. 

So I have to initialeze the varible in the "main" program: 

float a; 

main() 

a = 10500;  

...... 

Then the program can run porperly whenever I change the initial value. 

did you ever met this? 

 

 

Thanks
0 Kudos
0 Replies
Reply