bootloader protection

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

bootloader protection

跳至解决方案
1,697 次查看
chetu
Contributor I

hi

i am  chetan 

i am using MC9S12DP256 microcontroller in my bootloader project

 

1.please help me to protect bootloder area i.e. (3B,3F page)???

 2. how to jump from application to bootloader ??

 

thanks in advance 

标签 (1)
0 项奖励
回复
1 解答
922 次查看
isionous
Contributor III

chetu wrote: please help me to protect bootloder area i.e. (3B,3F page)???

 

 I'm looking at the MC9S12XDP512 data sheet and section 28.3.2.5 talks about the Flash Protection Register (FPROT).  The data sheet should have information on what you need to do.

 

 

 chetu wrote: how to jump from application to bootloader ??

 

If you're programming in C, use some inline assembly:

 

 

asm jmp BOOTLOADER_ENTRY

 

 Where BOOTLOADER_ENTRY is defined elsewhere to be the address of the entry point of the boot loader.  You might have to mess with the Project.prm to set the boot loader entry point to what you want.  Also, bootloaders are usually executed upon reset, so you could just have the microcontroller reset itself.

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
923 次查看
isionous
Contributor III

chetu wrote: please help me to protect bootloder area i.e. (3B,3F page)???

 

 I'm looking at the MC9S12XDP512 data sheet and section 28.3.2.5 talks about the Flash Protection Register (FPROT).  The data sheet should have information on what you need to do.

 

 

 chetu wrote: how to jump from application to bootloader ??

 

If you're programming in C, use some inline assembly:

 

 

asm jmp BOOTLOADER_ENTRY

 

 Where BOOTLOADER_ENTRY is defined elsewhere to be the address of the entry point of the boot loader.  You might have to mess with the Project.prm to set the boot loader entry point to what you want.  Also, bootloaders are usually executed upon reset, so you could just have the microcontroller reset itself.

 

0 项奖励
回复