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
691 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
650 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
661 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
651 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
%3CLINGO-SUB%20id%3D%22lingo-sub-2063509%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELPC1768%20wake%20up%20from%20DeepSleep%20when%20bootloader%20is%20present%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2063509%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20a%20cusotm%20board%20with%20LPC1768%20and%20I%20need%20to%20use%20deep%20sleep%20mode.%20Everything%20works%20OK%20as%20default%20but%20when%20I%20install%20a%20bootloader%20and%20the%20main%20program%20where%20I%20need%20to%20use%20deep%20sleep%20has%20an%20offset%2C%20when%20I%20wake%20up%20the%20MCU%20it%20clear%20ctach%20teh%20IRQ%20and%20wake%20up%20as%20current%20increased%20it%20remains%20stucked%20somewhere...%20possible%20goes%20on%20a%20wrong%20address.%20I%20do%20nto%20know%20how%20to%20debug%20as%20debuger%20does%20not%20work%20in%20deep%20sleep.%3C%2FP%3E%3CP%3EAny%20idea%3F%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2064191%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20LPC1768%20wake%20up%20from%20DeepSleep%20when%20bootloader%20is%20present%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2064191%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EYes...%20aplicatiopn%20was%20aorking%20independently.%20Anyway%20I%20found%20the%20problem%20and%20solution.%20Only%20need%20it%20to%20add%20Offset%20address%20when%20reainitialize%20the%20clock%26nbsp%3B%3C%2FP%3E%3CP%3ESCB-%26gt%3BVTOR%20%3D%20ADRE_OFFSET%20%26amp%3B%200x3FFFFF80%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThank%20you%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2064126%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20LPC1768%20wake%20up%20from%20DeepSleep%20when%20bootloader%20is%20present%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2064126%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F247325%22%20target%3D%22_blank%22%3E%40laurianussss%3C%2FA%3E%2C%3CBR%20%2F%3ECould%20you%20execute%20the%20Bootloader%20application%20and%20the%20low%20power%20mode%20independently%3F%26nbsp%3Bthis%20with%20the%20propose%20of%20corroborate%20that%20both%20work%20as%20expected.%3C%2FP%3E%0A%3CP%3EAlso%2C%20I%20highly%20recommend%20see%20the%204.8.2%20called%20%22%20Deep%20Sleep%20mode%22%20in%20order%20to%20obtain%20more%20information%20about%20low%20power%20mode.%3C%2FP%3E%0A%3CP%3EBR%3CBR%20%2F%3EHabib%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E