Clock initialization problem after bootloader jumps to application

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


This is my clock tree.

 

 

In the Bootloader and Appliation, I used the same clock initialization code!

But when jumping from Bootloader to Application, an error occurs when reinitializing the clock.

 

The code is stuck here.

I know because DFPLL0 has been initialized in BOOTLOADER, CLKRDY and LOCK have been set.

 

So, how can I avoid this problem?

 

 

 

 

 

 

 

This topic has a solution.
Last Edited: Thu. Apr 7, 2022 - 08:30 AM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The general solution for init problems in the application when it's started from the bootloader is to include a reset in the app start process.

There is a thread about it here:

https://community.atmel.com/foru...

/Lars

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks, I know how to do it