Jumping from Boot loader to App

cancel
Showing results for 
Search instead for 
Did you mean: 

Jumping from Boot loader to App

545 Views
mangeshk
Contributor II

I could able to get the  .bin file from UART and store it into local buffer, after that i saved this data in to 0x6000 memory location on words.

I am using  __asm__("b 0x00006004"); this command to shift the program execution. but its not shifting and not starting the application program.

pastedImage_9.png

Please somebody help me to shift the execution from bootloader to Application program.

Tags (1)
9 Replies

154 Views
mangeshk
Contributor II

Hi,

Please send me source code on mangeshk@danlawtech.com this mail.

Thanks,

Mangesh

0 Kudos

154 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Could you please create a ticket?

https://community.nxp.com/docs/DOC-329745 

The source code hasn't been released publicaly yet.

And I'm unable to send you the file due to a restriction.

Thank you,

Daniel

154 Views
mangeshk
Contributor II

Dear Community,

I found one Boot loader application note as AN12218, If somebody has source code for above application note please send me.

thanks,

Mangesh

0 Kudos

154 Views
mangeshk
Contributor II

Dear Community,

Please help  me on above thread.

Looking forward to your reply.

Thanks,

Mangesh

0 Kudos

154 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hi,

Please refer to https://community.nxp.com/message/1038838 

I hope it helps you.

Best regards,

Diana

0 Kudos

154 Views
mangeshk
Contributor II

Hi Diana,

I tried whatever you provide, still its not switching to Application.

PC going to that entry function after that its going to UART receive function.

Through UART i am going to receive the App binary.

Please see the below images for more details.

1. UART receive function(After calling to entry function, PC going to LPUART_DRV_ReceiveDataBlocking function)

pastedImage_1.png

2. Jump To App function

pastedImage_2.png

3. main_boot() program execution sequence

pastedImage_3.png

i have tried with UART Receive data with non blocking function.

Please help me for switching the execution to Application.

0 Kudos

154 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Have you tried,

entry = (void (*)(void))pc;

Regards,

Daniel

0 Kudos

154 Views
mangeshk
Contributor II

Yes daniel, i have tried same routine.

0 Kudos

154 Views
mangeshk
Contributor II

see the downloaded App with memory location.

pastedImage_1.png

0 Kudos