LPC1768 wake up from DeepSleep when bootloader is present

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

LPC1768 wake up from DeepSleep when bootloader is present

跳至解决方案
538 次查看
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 解答
497 次查看
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 回复数
508 次查看
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 项奖励
回复
498 次查看
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 项奖励
回复