cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMXes should assist with UCPD Dead Battery

waclawek.jan
Super User

The UCPD Dead-battery mechanism is a major gotcha in many new STM32, as it creates a surprising bond between seemingly unrelated pins, and is on by default. There cannot be enough warnings to this, as users not intending to use the PD (which is probably the vast majority) have no incentive to actively seek for such bond.

As much as I abhor the whole Cube ecosystem, this is the one case where a sin committed in hardware design decision can be made right at least for those who click in the CubeMXes. The above bond can be highlighted in the pin diagram, and auto-generated code can disable DBCC automagically for all who don't actively enable PD.

JW

2 REPLIES 2
TDK
Super User

Yes, this is exactly the sort of thing STM32CubeMX should be doing.

Even worse is the STM32G0x0 which doesn't even have a UCPD peripheral and yet still contains the pulldown. This is all buried in a footnote of a table in the datasheet.

Solved: Re: STM32G070CBT6 0.7V on input pin with extrenal ... - STMicroelectronics Community

If you feel a post has answered your question, please click "Accept as Solution".
FBL
ST Employee

Hello @waclawek.jan 

Thank you for highlighting this. An internal ticket CDM0061646 is submitted to dedicated team to add warning and allow code generation to disable the dead battery pull down behavior easily.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.




Best regards,
FBL