你好,
跑例程 C:\ti\c55_lp\c55_csl_3.07\ccs_v6.x_examples\power\CSL_PowerManagement_IDLE3_Example 在 EVM5515板上,我发现CPU无法被alarm rtc唤醒。这个例程本意是设置一个8s后产生中断的alarm,然后将cpu置于IDLE3的状态,8s后被alarm唤醒然后继续往下执行剩下的程序。但是从打印中,我们看出,alarm已经正常产生中断,CPU确没有被唤醒。打印如下:
CSL RTC TESTS
This test demonstrates RTC ALARM interrupt generation capability
RTC_setCallback Successful
RTC_config Successful
RTC_getConfig Successful
RTC_setTime Successful
RTC_setDate Successful
RTC_setAlarm Successful
RTC_eventEnable for ALARM EVENT Successful
Starting the RTC..alarm will be produced on 12:12:30:0512, 3-12-13 ….Have a sleep
Current Time and Date is : 12:12:12:0122, 03-12-13
Disabling USB Clk domain
Disabling Clk to all preipherals except Sysclk to clk generator
RTC Alarm Interrupt has been generated
Sysclk and PLL turned back ON
Shine:
程序有执行到 printf("\nExecuting IDLE instrn next ");吗?如果cpu没进入idle状态就不能唤醒了。
Yang Xiao6:
回复 Shine:
Dear Shine, 打印中好像没有打到这句,是不是意味着在这句之前已经进入了IDLE状态。
另外,为什么进入IDLE状态后CPU无法被唤醒?