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).
it is simply hilarious (don't forget to use a dictionary to figure out what 'hilarious' means, junior, if you know how to) to see you copy-paste (with spelling mistakes, for potato's sake...) the arguments of others, even when you totally don't understand them. you embody a combination of characteristic that I really dislike in people: stupidity, arrogance, swagger, ignorance.
Note that the original poster never says that the program runs. Just that it doesn't work anymore.
What is the name of this removed function? It may be a function that the CRTL has a default implementation of, so removing the function will result in another function with the same name being linked into the application - a function that does something not compatible with the rest of the program.
A big question here is what differences the function removal has to the information in the link map file. Will the map file show that there are no longer a function with this name, and all following functions having their start address reduced with a few bytes?
Another thing - do you have a debugger? Or have you tried to run the application in the simulator? Will it enter main()?
Tapeer.
thank u for yo're kind words of kindness and support.
Always yo're freind.
Zeusti.
(the abi reader)
Let me guess - "abi" stands for "Abnormal Brain Inactive" ?
u have been reeding the wrong book!
i thoght u knew what it was. most arm programmers know it. abi is the application binary interface.
i have found the link for u
infocenter.arm.com/.../index.jsp
Well, the t function is not called. It is a dummy function actually. There is no error in the link. The .hex file is generated, but no functionality of the system works. Neither blinking LED, nor others like uart communication. I use RTC RAM to store some important data. But it should not interfere the system working at this point. When I simulate the code in Keil it works. However, when I load the .hex file ...
Why don't you debug the code and see where it hangs?
I can run the simulation debug, but in this way the system works normally. I can't run JTAG debug because I do not have JTAG link.
If nothing else, perhaps all this just goes to show that you should get a JTAG link!
Without ULINK (JTAG debugger) you will not be able to find out easily why your application hangs, especially if in simulator it works.