LPC845 bootloader jump issue

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC845 bootloader jump issue

ソリューションへジャンプ
1,228件の閲覧回数
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,081件の閲覧回数
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,082件の閲覧回数
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