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
Solved! Go to Solution.
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.
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.