S12 Bootloader example for Cosmic Compiler

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S12 Bootloader example for Cosmic Compiler

399件の閲覧回数
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?

 

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.

タグ(3)
0 件の賞賛
返信
0 返答(返信)