2019-05-14 02:18 AM
Hi - I have a issue about debug mode by J-Link
my MCU is STM32F030C8T6
my debugger is J-Link OB ARM debugging emulator
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
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)
f. STM32CUBE-IDE will error follow picture below
But I use IAR Embedded Workbench IDE will not found this issue
How I can fix this issue? for STM32CUBE-IDE
thank you