Hi, I have a function in my code which has its content commented. So it does nothing. When a I remove this function the system no longer works (the LED was blinking and now is turned off).
There are just two functions (inclusive the mentioned function) in the .c file (one of several .c files). Removing the empty function causes the failure. Can somebody help me?
maybe removing the function shifts the location of some memory-mapped structure you are using? you really need to give more details.
HI.
when you remove t function do u get link errors? is t function being called?
Always yo're freind.
Zeusti.
(the arm abi reader)
say, professor, how can it be that the OP reports that the program "no longer works" (=LED does not blink, but program runs), if he indeed got linker errors as you suspect? do you really believe that programs that don't link can be run?
We have seen a large number of posts where people have complained about their applications and described specific errors (such as not blinking) even when they have failed to link a binary.
Some people defines "running" as managing to (maybe) send a binary to the target. Some people things that the program is running because all I/O reverts to their reset defaults. Some people things that the program is running because the program has gone wild and manages to touch any I/O while not in control.
In this case, a good initial question might be: How do you know that the program is still running, even if you can't see any blinking LED?
View all questions in Keil forum