LPC845 bootloader jump issue

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

LPC845 bootloader jump issue

跳至解决方案
1,221 次查看
jtro
Contributor III

In my custom bootloader I'm not able to jump to application.

memory mapping:

0x0 to 0x8fff - bootloader

0x9000 - 0x9ffff - firmware

bootloader Code:

void boot_jump(uint32_t address)

{

// below assembly code gives error in mcuxpresso

//     __asm(
//            LDR SP, [R0]        //;Load new stack pointer address
//            LDR PC, [R0, #4]    //;Load new program counter address
//          );

//alternate function for jump

    asm("bx %r0");

}

void main()

{

            for(uint8_t irqn=0; irqn < 32; irqn++)
            {
                NVIC_DisableIRQ(irqn);
                NVIC_ClearPendingIRQ(irqn);
            }

            SCB->VTOR = 0x9000 & 0x1FFFFF80;

            boot_jump(0x9000 );

}

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,074 次查看
soledad
NXP Employee
NXP Employee

Hi, 

Please check the following thread and let me know if this helps, 

https://community.nxp.com/thread/494497 

Have a nice day!

Regards 

Sol 

在原帖中查看解决方案

1 回复
1,075 次查看
soledad
NXP Employee
NXP Employee

Hi, 

Please check the following thread and let me know if this helps, 

https://community.nxp.com/thread/494497 

Have a nice day!

Regards 

Sol