cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with configuring a pin to output high level with STM32H563

WYS666
Associate

需要寻求帮助,我使用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

 

 

2 REPLIES 2
mƎALLEm
ST Employee

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? 

 

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.

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?

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.