Resolved! I have a STM32F031 Nucleo board. This board has a STM32F031K6T6 (LQFP32) micro controller. I am trying to set up command shell console so that I can use printf(). But it does not work. I have enabled huart1 and added this:- int _write() function.
Board is powered by an external power supply.