Skip to main content
Ruslan1
Associate II
October 11, 2019
Question

[Bug report]! stm32f1x ll drivers: function LL_GPIO_Init resets outputs if parameter "pull" isn't assigned, even if the output should be in HIGH mode by default.

  • October 11, 2019
  • 1 reply
  • 1182 views

To assign pull mode of output pin the function LL_GPIO_SetPinPull writes 0 or 1 to the output buffer (inside the body of LL_GPIO_Init ). Hence if pull-up or pull-down is not necessary (pull parameter equals zero) the output of the pin changes to 0.

So the routine should be corrected so that if the pull parameter is not assigned nothing is written to the output buffer. Generally, the pull parameter for output pin type is excess. It should be hiden in CubeMx.

This topic has been closed for replies.

1 reply

Technical Moderator
October 14, 2019

Hello @Ruslan​ ,

This issue is already raised internally to CubeMx team for fix in the coming release.

Regards,

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
waclawek.jan
Super User
October 14, 2019

What do you mean by this question, @Pavel A.​ ?

As far as I understand the original post, this problem is 'F1-specific, stemming from the different GPIO registers structure.

JW