I'm using cw 10.7 with frdm-kl25z. I have changed kinetis_sysinit adding some handlers (i2c, uart).
I have no more original bootloader but I'm using DEBUG-APP_Pemicro_v108.SDA and MSD-FRDM-KL46Z48M_Pemicro_v112.SDA. I build my srec flash image file. When I use cw with debug command
from tool bar my application is ok, but if i copy with drag and drop my hex file on msd and then i switch off and switch on frdm board my hex is not ok. I suppose that bootloader in opensda micro jumps on main of my application skipping kinetis_sysinit and my handler functions. If i run my application inside cw then debugger goes in reset status and runs
kinetis_sysinit. if i use original bootloader ( arriving with a new board) and i copy srec file on msd when i switch off and switch on the freedom board then my application runs correctly "as if" original bootloader jumps on kinetis_sysyinit running my handler. My question: how can i run my hex file without cw debug ? have i to use original bootloader ?