cancel
Showing results for 
Search instead for 
Did you mean: 

ST-Link's Virtual-Comport does not work when compiling the Release mode. Port itself is OK.

DBlac.1
Associate II

Hi, friends.

I connected NUCLEO-F446RE to ST-LINK's Virtual Comport. And I'm controlling the Step Motor by communicating with Comport, and Comport works well in Debugging Mode. By the way, I compiled it in Release Mode and downloaded it, but Comport doesn't work. Which part will solve the problem?

1 REPLY 1
DBlac.1
Associate II

As a result of optimization, problems were caused by variables without the volatile declaration. Thank you.