S12 Bootloader example for Cosmic Compiler

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S12 Bootloader example for Cosmic Compiler

1,116 Views
Gildarai
Contributor II

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?

Tags (3)
0 Kudos
Reply
2 Replies

1,113 Views
Gildarai
Contributor II

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.

0 Kudos
Reply

1,050 Views
stanish
NXP Employee
NXP Employee

Hi Gildarai,

You can definitely try to adjust the code using vendor specfic options.

I'd recommend you to check the attached Technical note for more details about differences between CodeWarrior and Cosmic:

 

Hope it helps.

Stan

 

 

0 Kudos
Reply