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

questions on MDK 3.05, GNU toolset?

MDK 3.05, GNU toolchain, LPC blinky example,

This example includes two files Startup.s and blinky.c.

When I change Startup.s into other name, such as tt.s, but I didn't change any code. Compiling success, but debugger can not locate a correct location.

How can I fix this problem? so debugger can locate a correct location with tt.s instead of Startup.s.

Also, in Startup.s, pc will skip into _start, but _start is not defined anywhere. In fact, pc skip into main funciton in C. Also, if I changed main into other name, compiling is not correct? How to solve this problem? thanks,

  • How can I fix this problem?

    You could be more precise in describing what exactly you did. So you say you "changed the name" of startup.s. What exactly does that mean? Did you just rename the file and expect that to work? Without, say, changing any of the project settings to inform the tools about this change at all?

    Also, if I changed main into other name, compiling is not correct?

    What exactly made you think you were allowed to change that without any effects?

    How to solve this problem?

    By learning what things do before you blindly change them. Messing with things you don't understand will only get you in trouble, but quite certainly not achieve anything useful.