Hello all.
I'm looking for bootloader example for cosmic compiler.
I've found example "AN5389SW", but it looks like just for a Code warrior.
I tried convert that example, but there are some difference from grammar such like below.
#pragma CODE_SEG DEFAULT_RAM
void PFLASH_Send_Command(void)
{
asm PSH CCL; // 0x10 command
DisableInterrupts;
FSTAT_CCIF = 1; //launch command
while(FSTAT_CCIF == 0){}; //wait for done
asm PUL CCL; // 0x90 command
}
Do you have documents or example for what help to me make a bootloader for Cosmic compiler?
Additionally,
Is it possible to apply and work that Bootloader made by CW, Application made by Cosmic?
I have both Code warrior and Cosmic compiler, so if possible that, I can try it.