Bootloader Problem

cancel
Showing results for 
Search instead for 
Did you mean: 

Bootloader Problem

62 Views
andreasruetten
Contributor II

Hello i have a strange problem with my  secondary bootloader.

The user app resides from 0x0 - 0x1ffff

The Bootloader  from  0x20000 - 0x30000

The user app starts from reset.

The bootloader is called by the user app.

The bootloader erases  0x0 - 0x1ffff and program the sectors with the new data via uart data.

After all data transfered, it makes an reset via  wdog.

But the new user app won't start.

To check the data, i read out over swd with an segger j-link.

The data looks okay, and when i erase memory with j-link and program the same

data, that i readout before, it works !!!

So the data programmed through my bootloader are Okay.

Any hints?

Why does a complete chip erase do the job?

Andreas 

 

 

 

 

 

 

 

 

 

 

0 Kudos
4 Replies

54 Views
nxf56274
NXP TechSupport
NXP TechSupport

Hi,

Which mcu do you use? Do you try to set MSP and PSP to jump? 

 

Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 days after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

48 Views
andreasruetten
Contributor II

Hi

we use LPC1769.

The Problem is not the jump, because the bootloader begins at 0x20000 and is called from the
user app.

The Problem is,that after IAP  the user App, from 0x00 to 0x1ffff the user app won't start after Reset or Powerup.

The user data after IAP seems to be OK.

Readout via swd -> erase chip -> write back same data -> after reset the user app runs ....

 

Andreas

0 Kudos

38 Views
nxf56274
NXP TechSupport
NXP TechSupport

Hi,

Please repost your questions in this link -- https://community.nxp.com/t5/LPC-Microcontrollers/bd-p/lpc

Your case is assigned to kinetis tse. But your product is LPC. So you have to repost.

Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 days after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

36 Views
andreasruetten
Contributor II

Ok,

my mistake ...

0 Kudos