I've always jumped to a separate "resetprog.c" code for bootloader and application. Clock settings, RAM usage, interrupt base etc will be completely overwritten in both cases with the respective code sets - simple.
↧