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!

 

2 REPLIES 2
AScha.3
Super User

Hi,

(I dont have an N6 , but ..)

OscillatorType = RCC_OSCILLATORTYPE_NONE;

this is correct ? type none ?

If you feel a post has answered your question, please click "Accept as Solution".
Saket_Om
ST Employee

@athern27 wrote:

Earlier, this code was working fine, but now it consistently fails at this point.


You mean it was working in previous version? 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Saket_Om