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

ISP: global variables definition cause the application to jump back to boot loader

Hi,
I am trying to modify the example <apnt_180_test> from keil to exercise the ISP function.

When i add my golbal variables definition in boot loader, the application asm code will add one statment to jump to ?C_START, cause the program flow back to boot loader and can't return.

But declare the global variables only without giving them initial values, the jump statement won't be generated by complier, and program flow runs as expected.

i am wondering this might from the startup.asm.
Does anyone having this problem before, and how to solve it?

Thanks very much.
YC

0