LPC1768 wake up from DeepSleep when bootloader is present

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC1768 wake up from DeepSleep when bootloader is present

Jump to solution
533 Views
laurianussss
Contributor II

I have a cusotm board with LPC1768 and I need to use deep sleep mode. Everything works OK as default but when I install a bootloader and the main program where I need to use deep sleep has an offset, when I wake up the MCU it clear ctach teh IRQ and wake up as current increased it remains stucked somewhere... possible goes on a wrong address. I do nto know how to debug as debuger does not work in deep sleep.

Any idea?

 

0 Kudos
Reply
1 Solution
492 Views
laurianussss
Contributor II

Yes... aplicatiopn was aorking independently. Anyway I found the problem and solution. Only need it to add Offset address when reainitialize the clock 

SCB->VTOR = ADRE_OFFSET & 0x3FFFFF80;

 

Thank you

 

 

View solution in original post

0 Kudos
Reply
2 Replies
503 Views
Habib_MS
NXP Employee
NXP Employee

Hello @laurianussss,
Could you execute the Bootloader application and the low power mode independently? this with the propose of corroborate that both work as expected.

Also, I highly recommend see the 4.8.2 called " Deep Sleep mode" in order to obtain more information about low power mode.

BR
Habib 

0 Kudos
Reply
493 Views
laurianussss
Contributor II

Yes... aplicatiopn was aorking independently. Anyway I found the problem and solution. Only need it to add Offset address when reainitialize the clock 

SCB->VTOR = ADRE_OFFSET & 0x3FFFFF80;

 

Thank you

 

 

0 Kudos
Reply