This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error removing a function

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).

Parents
  • 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()?

Reply
  • 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()?

Children
No data