cancel
Showing results for 
Search instead for 
Did you mean: 

Wakeup signal

ssk
Associate II
Posted on May 18, 2015 at 11:05

Hello,

I am trying to configure a wakeup signal WKPU6 as below.

WKUP.WISR.B.EIF = 0x02000000; //Clear interrupt flag

WKUP.WIREER.B.IREE = 0x02000000; //Disable rising edge

WKUP.WIFEER.B.IFEE = 0x02000000; //Enable falling edge

WKUP.IRER.B.EIRE = 0x00000000; //Enable interrupt

WKUP.WRER.B.WRE = 0x02000000; //Enable system wakeup

WKUP.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.

#wakeup
This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
2 REPLIES 2
ssk
Associate II
Posted on May 19, 2015 at 12:51

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=false
Erwan YVIN
ST Employee
Posted on May 20, 2015 at 17:58

Hello Mike ,

You have forgotten to configure the WKPU PCTL it should be enabled in STOP0 Mode

halSPCSetPeripheralClockMode(69,
SPC5_ME_PCTL_RUN(2) | SPC5_ME_PCTL_LP(3));

Best Regards Erwan