STM32F103RB program hangs after calling HAL_TIM_Base_Start_IT()
Hello, I am using the NUCLE-F103RB and the STM32CubeIDE for developing and testing code. After my latest code change the program does not return form the below call of HAL_TIM_Base_Start_IT(&htim3).
"TEST1" is printed to the terminal, but "TEST2" is not.
Not sure if this is related, but during uploading to the NUCLEO the cursor stops is in the file sysmem.c at
void *_sbrk(ptrdiff_t incr)
This is the code where the program 'hangs'...
sprintf(msgString, "TEST1\r\n");
HAL_UART_Transmit(&huart2, (uint8_t*)msgString, strlen(msgString) , 0xFF);
/* Start the TIM Base generation in interrupt mode */
if (HAL_TIM_Base_Start_IT(&htim3) != HAL_OK) {
Error_Handler();
}
sprintf(msgString, "TEST2\r\n");
HAL_UART_Transmit(&huart2, (uint8_t*)msgString, strlen(msgString) , 0xFF);
Can this issue be related to memory management? Thank you!