Skip to main content
Pisut Temjitpakdee
Associate
May 14, 2019
Question

Issue stm32cube-ide debug by J-LINK lost when resume after stop at breakpoint about 1 min

  • May 14, 2019
  • 0 replies
  • 1145 views

Hi - I have a issue about debug mode by J-Link

my MCU is STM32F030C8T6

my debugger is J-Link OB ARM debugging emulator

0690X000008BhOaQAK.jpg

this my code

int main(void)
{
 /* USER CODE BEGIN 1 */
 
 /* USER CODE END 1 */
 
 
 /* MCU Configuration--------------------------------------------------------*/
 
 /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
 HAL_Init();
 
 /* USER CODE BEGIN Init */
 
 /* USER CODE END Init */
 
 /* Configure the system clock */
 SystemClock_Config();
 
 /* USER CODE BEGIN SysInit */
 
 /* USER CODE END SysInit */
 
 /* Initialize all configured peripherals */
 MX_GPIO_Init();
 MX_USART1_UART_Init();
 MX_USART2_UART_Init();
 /* USER CODE BEGIN 2 */
 
 /* USER CODE END 2 */
 
 /* Infinite loop */
 /* USER CODE BEGIN WHILE */
 uint8_t i = 0;
 
 while (1)
 {
 /* USER CODE END WHILE */
 
 /* USER CODE BEGIN 3 */
	char text[32];
	sprintf(text, "HELLO_WORLD_%d\r\n", i++);
	HAL_UART_Transmit(&huart2, (uint8_t*)text, strlen(text), 1000);
	HAL_Delay(100);
 }
 /* USER CODE END 3 */
}

and my scenario follow step as

a. Set breakpoint at line 

HAL_UART_Transmit(&huart2, (uint8_t*)text, strlen(text), 1000);

b. run debug mode

c. Program will stop at follow in this picture

0690X000008BhJYQA0.jpg

d. I stay wait in this breakpoint about 1 min.

e. I push button resume in ide for running program (if push button resume faster than 1 min will not found this issue)0690X000008BhK7QAK.jpg

f. STM32CUBE-IDE will error follow picture below

0690X000008BhLPQA0.jpg

But I use IAR Embedded Workbench IDE will not found this issue

How I can fix this issue? for STM32CUBE-IDE

thank you

This topic has been closed for replies.