DSC In-application Programming

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

DSC In-application Programming

776 次查看
renanjohncañas
Contributor I

What is the proper routine or algorithm in enabling In-application programming for DSC (i.e. MC56f82748)?

I tried jumping to the bootloader _Entrypoint from the application main loop by using the jmp command in assembly but the Bootloader keeps on resetting itself to that entrypoint?

if (Term1_KeyPressed()){
Term1_ReadLine(hex);
//if(hex[0]=='f'){
// StartAddress = 0x7800;
// asm(move.l StartAddress, N);
// asm(jmp (N));}

Term1_ReadLine(hex);

//Term1_SendNum(10);
if( checker(hex,flsh)!=0)
{

Term1_SendStr("Going to Bootloader?[Y][N]");
Term1_CRLF();

StartAddress = 0x7800;

asm(move.l StartAddress, N);

asm(jmp (N));
}
else{
Term1_SendStr("Unrecognized Command");
Term1_CRLF();}

0 项奖励
回复
0 回复数