cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_Error at HAL_RCC_OscConfig in STM32N6570-DK board

athern27
Senior

Hi everyone,

I am currently running the DCMIPP_Continuous mode example from STM32N6Cube firmware v1.2.0. However, I am getting stuck at the function call:
HAL_result = HAL_RCC_OscConfig(&RCC_OscInitStruct);

RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_NONE;
  RCC_OscInitStruct.PLL1.PLLState = RCC_PLL_ON;
  RCC_OscInitStruct.PLL1.PLLSource = RCC_PLLSOURCE_HSI;
  RCC_OscInitStruct.PLL1.PLLM = 4;
  RCC_OscInitStruct.PLL1.PLLN = 75;
  RCC_OscInitStruct.PLL1.PLLFractional = 0;
  RCC_OscInitStruct.PLL1.PLLP1 = 1;
  RCC_OscInitStruct.PLL1.PLLP2 = 1;
  RCC_OscInitStruct.PLL2.PLLState = RCC_PLL_NONE;
  RCC_OscInitStruct.PLL3.PLLState = RCC_PLL_NONE;
  RCC_OscInitStruct.PLL4.PLLState = RCC_PLL_NONE;
  HAL_StatusTypeDef HAL_result;                        // Have a variable to catch the result

  HAL_result = HAL_RCC_OscConfig(&RCC_OscInitStruct);  // Catch the result
  if (HAL_result != HAL_OK)
  {
    Error_Handler();
  }

After some debugging, I found that the function returns HAL_ERROR. Earlier, this code was working fine, but now it consistently fails at this point.

Could anyone please guide me on how to proceed with this issue?

Thanks in advance!

 

0 REPLIES 0