bootloader protection

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

bootloader protection

Jump to solution
1,268 Views
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 

Labels (1)
0 Kudos
1 Solution
493 Views
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.

 

View solution in original post

0 Kudos
1 Reply
494 Views
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 Kudos