I am facing a realy strange problem while trying to put my "bluepill" with stm32f103c8t6 onboard into a standby mode. The consumption in standby mode is .8mA (what is 40 times higher then its supposed to be) on first board (Board A) and .02mA (what is 10 times higher) on second board (Board B). I spent 2 days already reading datasheet and reference manual and cannot get below .8mA.

(Board A) was modifyed by removing the on board voltage regulator and 2 LEDs. (Board B) has only the uC, 2 resistors (100k R3, R4).

The code I use is the following:


I am running at 8MHz (probably not so important in this case). I have already tried to put all pins into analog input mode (to disconnect the internal schmitt trigger).

screenhot from stm32f103 datasheet

  • \$\begingroup\$ Wait, is the whole bluepill consumption 0.8mA while the expected consumption of the stm32f103c8t6 should be 1/40 th of that? Maybe it is some circuit in the bluepill that is using all that quiescent current and not really the stm32f103c8t6. \$\endgroup\$ – jDAQ Apr 12 at 16:50
  • \$\begingroup\$ Ok I see you modified the bluepill board, are there any other non essential circuitry left? \$\endgroup\$ – jDAQ Apr 12 at 16:51
  • \$\begingroup\$ No, the board only has some resistors, caps and two oscilators on it. Osciloscope says that the oscilators are quiet. \$\endgroup\$ – Markiyan Pyekh Apr 12 at 16:54
  • \$\begingroup\$ A actually have another board, that I did not mentioned in my post. This second board has 3 components on it: uC and two 100k resistors(R3,R4) for BOOT. Its consuming .02mA(20uA, what is 10 times more than I expect). \$\endgroup\$ – Markiyan Pyekh Apr 12 at 16:56
  • \$\begingroup\$ Please, update the post itself with the newer/correct information. \$\endgroup\$ – jDAQ Apr 12 at 17:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.