S12 Bootloader example for Cosmic Compiler

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S12 Bootloader example for Cosmic Compiler

1,119 次查看
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?

标记 (3)
0 项奖励
回复
2 回复数

1,116 次查看
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 项奖励
回复

1,053 次查看
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 项奖励
回复