OPENOCD Debug doesn't work, but on STM32 ST-LINK Software works
I have de same problem
I could connect with st link utility but now with system workbench to debug my application
this is the code
- include “stm32f0xx.h”
volatile uint32_t counter = 0;
int main( void ) {
HAL_Init();
GPIO_InitTypeDef GPIO_InitStruct;
/* GPIO Ports Clock Enable */
__GPIOA_CLK_ENABLE();
/*Configure GPIO pins : PAPin PAPin */
GPIO_InitStruct.Pin = GPIO_PIN_4;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
while(1)
{
HAL_GPIO_TogglePin(GPIOA, GPIO_PIN_4);
for(counter=0; counter