Tool/software:
Hi,
When wakeup from
Hi MM,
You should not need to run the entire UART init again.
Calling Power_sleep() manually is unadvised (See documentation: "This function must be called with interrupts disabled, and should not be called directly by the application, or by any drivers. This function does not check declared constraints; the policy function must check constraints before calling this function to initiate sleep.").
The transition to sleep should be managed by the power policy, and should go to sleep when it is idle. However, if UART RX is enabled, the device will not enter standby, you have to disable it using UART2_rxDisable().
Have you checked some of our driver examples: TI Drivers?
Can you explain what are you trying to achieve? How are you calling Power_sleep(), have you stated from one of the examples?
Best regards,
Daniel
Hi Marek,
No, if you're waking up from sleep you should not need to re initialize the uart. You should only need to start a new UART transaction.
I would recommend you to take a look at the UART2 Callback example:
Cheers,
Marie H
Hi,
I looked in driver examples but not found one wihch cover:
Puting device into sleep (constantly) and wakeup by clock or gpio for 120 sec.
I am using just RF (continous RX) + Uart, I closed RF and call UART2_rxDisabled() and then call Power_sleep(), and current drop from 10mA to 80uA, unfortunatelly I cant wakeup from this state because current rise only to 750uA.
Can you advice example will explain me it better?
Regards
Marek
Hi Marek,
In stead of calling Power_sleep(), please try setting up a clock or timer and implement a callback event. Or even easier, just use sleep(120) (the same is used in the drivers/empty project).
As long as your power policy allows it, the device will go to sleep aka standby when nothing is happening.
Cheers,
Marie H
Hi Marek,
Yes this will let the device go to standby when you call sleep() (unless the UART line is open).
If you just want to do some power measurements, you can run the empty() example and use Energy trace to get a feel for expected numbers. (And you will notice that the LEDs take a lot of power.)
Cheers,
Marie H
I just try it with no luck
Got empty project, Start Debuging, next Trace/Enable Energy Trace, empty chart appear. and F5.
I noticed messages, gathering data, Data Capture Finished, in just one second.
According to instructions, I cant find in ccs 20.3.0.14
Regards
Marek