2019-04-06 09:22 PM
Dear Members,
I changed my clock from MSI to HSI but my SPI and UART baudrate becoming wrong,
What do I miss here ?
thanks
2019-04-08 07:59 PM
On 2.097MHz :
2019-04-08 08:26 PM
What does USART2 look like via PA2/PA3 and the NUCLEO VCP @32 MHz?
2019-04-08 08:39 PM
On 32MHz, on UART1, I still get the same issue ??
2019-04-08 08:49 PM
which one is related with UART3 ? APB1 or APB2 ?
2019-04-08 09:01 PM
probably External crystal may help ?
2019-04-08 09:45 PM
USART3 register when 32MHz
2019-04-09 12:03 AM
Core=2097152, 2 MHz
HCLK=2097152
APB1=2097152
APB2=2097152
2019-04-09 08:57 PM
I can't use VCP, I have installed it as a driver, but can not see it my device driver,
I'm using Win 7 64.
I tried with external 16MHz, but it's not responding, it returned to 2.097MHz always...
I have no clues why until this level, any other ways ?
2019-04-14 02:31 AM
the stable setting only :
/**
* @brief System Clock Configuration
* @retval None
*/
void SystemClock_Config(void)
{
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
/**Configure the main internal regulator output voltage
*/
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
/**Initializes the CPU, AHB and APB busses clocks
*/
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_MSI;
RCC_OscInitStruct.MSIState = RCC_MSI_ON;
RCC_OscInitStruct.MSICalibrationValue = 0;
RCC_OscInitStruct.MSIClockRange = RCC_MSIRANGE_5;
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE;
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
{
Error_Handler();
}
/**Initializes the CPU, AHB and APB busses clocks
*/
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
|RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_MSI;
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_0) != HAL_OK)
{
Error_Handler();
}
}
2019-04-14 02:49 AM
Is it related with : RCC_HSICALIBRATION_DEFAULT ?