I write a bootloader to update the flash,but when the bootloader update the ?c?LIB_CODE,the MCU(C8051F005) always jump to another incorrect place. So I put the ?c?LIB_CODE into boot-area when linking. (BTW,my bootloader and app are compiled together.)
But I am afraid the ?c?LIB_CODE will increase when I use some new function in the newer applcation.then the app will be wrong if I do not update the ?c?LIB_CODE.
Any one has good ideas?