2015-05-18 02:05 AM
Hello,
I am trying to configure a wakeup signal WKPU6 as below.WKUP.WISR.B.EIF = 0x02000000; //Clear interrupt flagWKUP.WIREER.B.IREE = 0x02000000; //Disable rising edgeWKUP.WIFEER.B.IFEE = 0x02000000; //Enable falling edgeWKUP.IRER.B.EIRE = 0x00000000; //Enable interruptWKUP.WRER.B.WRE = 0x02000000; //Enable system wakeupWKUP.WIFER.B.IFE = 0x02000000;But when above code is executed, after the first statement, the code looses the track and never returns. What is the reason? I have tried to configure the bits from another end as well. Can you please clarify the behavior? Any test app for wakeup up signal?Thanks in advance for all your help.Mike. #wakeup2015-05-19 03:51 AM
I am attaching my test application herewith. Please respond.
Your earliest help will be highly appreciated. Thanks. Mike. ________________ Attachments : Test_Wakeup.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0R4&d=%2Fa%2F0X0000000bZ0%2FOiTXYSeYQ165b52WzMrHzeIoSBx37TPnVxplXu6twwQ&asPdf=false2015-05-20 08:58 AM
Hello Mike ,
You have forgotten to configure the WKPU PCTL it should be enabled in STOP0 ModehalSPCSetPeripheralClockMode(69,
SPC5_ME_PCTL_RUN(2) | SPC5_ME_PCTL_LP(3));
Best Regards
Erwan