cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX uses a lot of cycles doing seemingly trivial things, or "You used how much power doing WHAT?"

I have a project, I'm in the Pinout & Configuration view, everything is serene and placid.

I click on a pin and CubeMX brings up a list of possible configurations for a pin.

Meanwhile, in the background, I hear my fans spin up. Click over to Activity Monitor and STM32CubeMX is taking 113% (1 full thread plus a bit) of CPU time.

Click away and everything is sunshine and unicorns again.

How did I notice this? Well I came in this morning to find my laptop with 7% left on the battery. My laptop will actually pull more current than the charger can provide, then it starts drawing down the battery. Eventually it will shut itself down. That's a lot of power being sucked to display a text picker. (no I don't need to bike shed or shave yaks about Apple's charging system)

Just thought you'd like to know.

Andrei from The Great White North

1 REPLY 1

Java. It's about brewing coffee, right?

Get just the pins/functions table and do it in a spreadsheet processor.

Or print it out and do it with the old fashioned pencil. That is hard to beat when it comes to power consumption.

JW