Skip to main content
Visitor II
April 21, 2025
Question

Issue with configuring a pin to output high level with STM32H563

  • April 21, 2025
  • 2 replies
  • 398 views

需要寻求帮助,我使用STM32H563VIT6配置了一个引脚输出高低电平,在debug模式下可以运行,在正常运行(release)下就不能得到结果,这是为什么?而且我是在HSE不行还用了HSI也不行

Translation:

I need help. I used STM32H563VIT6 to configure a pin to output high and low levels. It works in debug mode, but not in normal operation (release). Why? And I used HSI but it didn't work in HSE.

WYS666_0-1745228255395.png

WYS666_1-1745228268624.png

 

 

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    April 21, 2025

    Hello @WYS666 and welcome to the community,

    First please use English language in this community.

    What board are you using?

    For the GPIO level could you please share your project? 

     

    Super User
    April 22, 2025

    Welcome to the forum.

    As @mƎALLEm said, more details are needed in order to help you - please see How to write your question to maximize your chances to find a solution for guidance.

     


    @WYS666 wrote:

    It works in debug mode, but not in normal operation (release).


    So what, exactly, happens in Release ?

    If it works in Debug, then your hardware must be OK - so the problem must be somewhere in your software.

    Maybe it's crashing before it gets to toggling the pin?

    Try to create a minimum but complete project which illustrates the issue.

     


    @WYS666 wrote:

    And I used HSI but it didn't work in HSE.


    What, exactly, do you mean by that?