Guest
#1172536
I have follow the manual 'ARM Development with Eclipse' but I have a problem. Maybe you can tell me a clue in order to solve it. In short, the problem I have is, after having all instaled, configured, and running, I only can 'blink' a output port if I compile the source file with the -O1, -O2, -O3 or -Os option in the arm-elf-gcc. If I compile with the option -O0 (or without entering any -O parameter), the program seems not to run. And the port doesn't blink. The compilation and linking have no errors, and I can download the .hex file in the ARM correctly. But when I run the program, it doesn't work. Only works when I enter one of these parameters options: -O1, -O2, -O3 or -O. Obviously I don't make any other change. I have been looking for more info in the internet, without any luck. Could you help me? Could you tell me some clue if you know about this problem? Thank you very very much. I don't know what to do. I want to compile with no optimization option because I want to use some active wait loops (you know, e.g. for(i=0; i<100000; i++); ) Best regards from Valencia, Spain.