Strange behaviour of SWD in atollic stm32 nucleo
Hello ;)
I want just configure SWD debbuger in Atollic to write some data, for first via ITM_SendChar.
So my main is:
while (1)
{
ITM_SendChar( 65 );
ITM_SendChar(‘D’);
HAL_GPIO_WritePin(LD2_GPIO_Port, LD2_Pin, GPIO_PIN_RESET);
HAL_Delay(500);
HAL_GPIO_WritePin(LD2_GPIO_Port, LD2_Pin, GPIO_PIN_SET);
HAL_Delay(500);
printf(“test”);
}
I get only once “AD”, but LED is blinking all the time and printf don’t work at all.
I will add that when I run program in VIsual Studio with VisualGDB extension it works and I get any information I want.
I try debug via ST-LINK Utility but there is the same problem I get only once “AD” and LED is blinking all the time.