AnsweredAssumed Answered

Peripheral resets when MCU runs from bootloader to application.

Question asked by Eunseok Jung on Jun 7, 2015
Latest reply on Jun 10, 2015 by jeremyzhou

Hi, all!

I'm using K10 series MCU. I made bootloader system which is based on AN2295 and its S/W.

Flash write, erase, and read function is working well, but when i start application code it makes error.

I noticed that before jump to application, i must deinitialize all peripherals that are used in bootload code.

I tihnk it is probably related with vector table. Some bootload interrupts(or vectors) are not used in application code.

My application program hasn't vectors which used in bootload code. How to deinitialize all peripherals?

And my hypothesis is right?

 

Now i deinitialize all peripherals one by one. But i can't find right registers that can deinitialize peripherals.

This picture is my DeInitialize function. I'm not sure it function is right or wrong.

Could you give me some advise? Thx.

Attachments

Outcomes