LPC1768 wake up from DeepSleep when bootloader is present

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LPC1768 wake up from DeepSleep when bootloader is present

跳至解决方案
692 次查看
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 项奖励
回复
1 解答
651 次查看
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 项奖励
回复
2 回复数
662 次查看
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 项奖励
回复
652 次查看
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 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2063509%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%BD%93%E5%BC%95%E5%AF%BC%E5%8A%A0%E8%BD%BD%E7%A8%8B%E5%BA%8F%E5%AD%98%E5%9C%A8%E6%97%B6%EF%BC%8CLPC1768%20%E4%BB%8E%20DeepSleep%20%E4%B8%AD%E5%94%A4%E9%86%92%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2063509%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E6%9C%89%E4%B8%80%E5%9D%97%E5%B8%A6%E6%9C%89%20LPC1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