On Tue, 04 Mar 2014 22:47:43 +0000, Uwe Bonnes wrote:
> Tim Wescott <tim@seemywebsite.really> wrote:
>
>> I found some, and figured out the magic finger-ring combination to go
>> really to sleep.
>
> Come on, tell us what is needed!
It's in another post -- I had the systick clock running, which apparently
preempts trying to turn off the core.
And for some bizzare reason I need to call WFE twice in a row. I don't
know why -- but it's working now.
--
Tim Wescott
Wescott Design Services
http://www.wescottdesign.com
Reply by Uwe Bonnes●March 4, 20142014-03-04
Tim Wescott <tim@seemywebsite.really> wrote:
> I found some, and figured out the magic finger-ring combination to go
> really to sleep.
Come on, tell us what is needed!
--
Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Reply by Tim Wescott●March 4, 20142014-03-04
On Tue, 04 Mar 2014 20:49:39 +0000, John Devereux wrote:
> Uwe Bonnes <bon@hertz.ikp.physik.tu-darmstadt.de> writes:
>
>> Tim Wescott <tim@seemywebsite.really> wrote:
>> ...
>>> My power consumption is still about two orders of magnitude above what
>>> I want, but I think that's a board problem, not the processor.
>>
>> Any floating lines? They draw much unwanted current.
>
> errata says something about excess current for analog pins on certain
> packages
>
> "Additional current consumption in the range of tens of μA per pin can
> be observed if VDDA is higher than VDDIO"
>
> <http://www.st.com/st-web-ui/static/active/jp/resource/technical/
document/errata_sheet/DM00058837.pdf>
Already noted, not an issue. I am using the ADCs, but VDDA is tied do
VDDIO. The application is such that the measurement process goes 1:
everything stops, 2: the ADCs get sampled.
--
Tim Wescott
Wescott Design Services
http://www.wescottdesign.com
> Tim Wescott <tim@seemywebsite.really> wrote:
> ...
>> My power consumption is still about two orders of magnitude above what I
>> want, but I think that's a board problem, not the processor.
>
> Any floating lines? They draw much unwanted current.
On Tue, 04 Mar 2014 20:13:34 +0000, Uwe Bonnes wrote:
> Tim Wescott <tim@seemywebsite.really> wrote:
> ...
>> My power consumption is still about two orders of magnitude above what
>> I want, but I think that's a board problem, not the processor.
>
> Any floating lines? They draw much unwanted current.
I found some, and figured out the magic finger-ring combination to go
really to sleep. I'm down to 250uA at this point, but I'd like to get
lower still.
--
Tim Wescott
Wescott Design Services
http://www.wescottdesign.com
Reply by Uwe Bonnes●March 4, 20142014-03-04
Tim Wescott <tim@seemywebsite.really> wrote:
...
> My power consumption is still about two orders of magnitude above what I
> want, but I think that's a board problem, not the processor.
Any floating lines? They draw much unwanted current.
--
Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Reply by Tim Wescott●March 4, 20142014-03-04
On Tue, 04 Mar 2014 12:03:38 -0600, Tim Wescott wrote:
> On Fri, 28 Feb 2014 19:10:07 -0600, Tim Wescott wrote:
>
>> Any time I ask a really specific question here it always seems to go by
>> the wayside. But what the heck -- it's Friday, it's late, and my @#$%
>> processor won't go to sleep!!!
>>
>> Anyone have any mileage with the ST Arm Cortex parts and sleep mode?
>> I've got a STM32F303 that doesn't really need it that goes to sleep
>> beautifully, and I've got an STM32F051 in an application where low
>> power is critical that isn't going to sleep at all!!!
>>
>> I'm calling the "wfe" instruction, I've tried calling the "wfi"
>> instruction instead, and got no difference. I've dug through the
>> manuals for the past two hours looking for that magic "oh, by the way,
>> you need to setorclear this magic bit", all to no avail.
>>
>> So, any help is appreciated. Even wild-ass suggestions, as long as
>> they come from the ARM Cortex world.
>
> How odd. It seems to be connected with having the system tick clock
> enabled. I had inadvertently left in some code that runs that.
>
> My power consumption is still about two orders of magnitude above what I
> want, but I think that's a board problem, not the processor.
And for some strange reason I need two in a row. And not WFE followed by
a NOP -- it wants two WFE instructions in a row.
Ah, the ways of the ARM are mysterious.
--
Tim Wescott
Wescott Design Services
http://www.wescottdesign.com
Reply by Tim Wescott●March 4, 20142014-03-04
On Fri, 28 Feb 2014 19:10:07 -0600, Tim Wescott wrote:
> Any time I ask a really specific question here it always seems to go by
> the wayside. But what the heck -- it's Friday, it's late, and my @#$%
> processor won't go to sleep!!!
>
> Anyone have any mileage with the ST Arm Cortex parts and sleep mode?
> I've got a STM32F303 that doesn't really need it that goes to sleep
> beautifully, and I've got an STM32F051 in an application where low power
> is critical that isn't going to sleep at all!!!
>
> I'm calling the "wfe" instruction, I've tried calling the "wfi"
> instruction instead, and got no difference. I've dug through the
> manuals for the past two hours looking for that magic "oh, by the way,
> you need to setorclear this magic bit", all to no avail.
>
> So, any help is appreciated. Even wild-ass suggestions, as long as they
> come from the ARM Cortex world.
How odd. It seems to be connected with having the system tick clock
enabled. I had inadvertently left in some code that runs that.
My power consumption is still about two orders of magnitude above what I
want, but I think that's a board problem, not the processor.
--
Tim Wescott
Wescott Design Services
http://www.wescottdesign.com
Reply by Tim Wescott●March 3, 20142014-03-03
On Mon, 03 Mar 2014 11:00:21 +0000, FreeRTOS info wrote:
> On 01/03/2014 01:10, Tim Wescott wrote:
>> Any time I ask a really specific question here it always seems to go by
>> the wayside. But what the heck -- it's Friday, it's late, and my @#$%
>> processor won't go to sleep!!!
>>
>> Anyone have any mileage with the ST Arm Cortex parts and sleep mode?
>> I've got a STM32F303 that doesn't really need it that goes to sleep
>> beautifully, and I've got an STM32F051 in an application where low
>> power is critical that isn't going to sleep at all!!!
>>
>> I'm calling the "wfe" instruction, I've tried calling the "wfi"
>> instruction instead, and got no difference. I've dug through the
>> manuals for the past two hours looking for that magic "oh, by the way,
>> you need to setorclear this magic bit", all to no avail.
>>
>> So, any help is appreciated. Even wild-ass suggestions, as long as
>> they come from the ARM Cortex world.
>>
>>
> I have had success with the 152 part using ST's library function:
>
> PWR_EnterSTOPMode( PWR_Regulator_LowPower, PWR_SLEEPEntry_WFI );
>
> The 152 is an M3 part, your 303 is an M4, so there may be differences on
> the 051, which is an M0. Is there an equivalent library function that
> you could use as a reference for the 051? Ultimately it comes down to
> calling the WFI instruction within the library function, but it may
> include some chip specific code prior to the WFI instruction itself.
>
> If it helps the low power specific parts that use the above reference
> library function can be found in the source file
> STM32L_low_power_tick_management.c of the demo documented on the
> following page:
> http://www.freertos.org/STM32L-discovery-low-power-tickless-RTOS-
demo.html
>
> Regards,
> Richard.
>
> + http://www.FreeRTOS.org Designed for microcontrollers. More than
> 107000 downloads in 2013.
>
> + http://www.FreeRTOS.org/plus IoT, Trace, Certification, FAT FS,
> TCP/IP, Training, and more...
I found their STM32F0xx library, and looked at the function you mention
-- all it does is to clear or set SLEEPDEEP depending on whether you want
sleep or stop, then call your choice of WFI or WFE.
So, no dice. But at least I know that I'm doing what ST intends.
--
Tim Wescott
Wescott Design Services
http://www.wescottdesign.com
Reply by FreeRTOS info●March 3, 20142014-03-03
On 01/03/2014 01:10, Tim Wescott wrote:
> Any time I ask a really specific question here it always seems to go by
> the wayside. But what the heck -- it's Friday, it's late, and my @#$%
> processor won't go to sleep!!!
>
> Anyone have any mileage with the ST Arm Cortex parts and sleep mode?
> I've got a STM32F303 that doesn't really need it that goes to sleep
> beautifully, and I've got an STM32F051 in an application where low power
> is critical that isn't going to sleep at all!!!
>
> I'm calling the "wfe" instruction, I've tried calling the "wfi"
> instruction instead, and got no difference. I've dug through the manuals
> for the past two hours looking for that magic "oh, by the way, you need
> to setorclear this magic bit", all to no avail.
>
> So, any help is appreciated. Even wild-ass suggestions, as long as they
> come from the ARM Cortex world.
>
I have had success with the 152 part using ST's library function:
PWR_EnterSTOPMode( PWR_Regulator_LowPower, PWR_SLEEPEntry_WFI );
The 152 is an M3 part, your 303 is an M4, so there may be differences on
the 051, which is an M0. Is there an equivalent library function that
you could use as a reference for the 051? Ultimately it comes down to
calling the WFI instruction within the library function, but it may
include some chip specific code prior to the WFI instruction itself.
If it helps the low power specific parts that use the above reference
library function can be found in the source file
STM32L_low_power_tick_management.c of the demo documented on the
following page:
http://www.freertos.org/STM32L-discovery-low-power-tickless-RTOS-demo.html
Regards,
Richard.
+ http://www.FreeRTOS.org
Designed for microcontrollers. More than 107000 downloads in 2013.
+ http://www.FreeRTOS.org/plus
IoT, Trace, Certification, FAT FS, TCP/IP, Training, and more...