Skip to main content
Explorer II
July 7, 2023
Solved

Nucleo-H745ZIQ clock configuration required to run at 480 MHz

  • July 7, 2023
  • 7 replies
  • 4627 views

Hello,

I want to use Nucleo-H745ZIQ board with operating clock at 480 MHz for M7 and 240 MHz for M4. Below is the clock configuration.

Nsg1987_0-1688706117562.png

Under RCC, options are either PWR_LDO or PWR_EXTERNAL_SOURCE_SUPPLY selection enabled. Voltage scale as Power Regulator Voltage Scale 0. 

Nsg1987_1-1688706221566.png

Jumper settings on board is as follows.

Nsg1987_2-1688706329677.png

External supply given is +9 V to VIN. 

While loading the code in the controller, I received error as No STM32 target found. 

I reset the core with STM32Cube Programmer, and found board working again.

But as soon as I repeat the above procedure to load the code with maximum clock selection, I got the same error.

Then I cut down the operating speed to 75 MHz for M7 and 60 MHz for M4 and selected Internal power supply and programmed again. Found working okay.

Can anyone let me know what wrong is going while I am trying to load the board with M7-480 MHz and M4-240 MHz?

Is there any wrong selection of parameters or something else.

 

Regards,

Nikhil

 

 

 

    This topic has been closed for replies.
    Best answer by Nsg1987

    Solution:

    Nsg1987_0-1688978293697.png

    Nsg1987_1-1688978313908.png

    connected external 9V to VIN pin of the board.

     

    Thank you all for your support.

     

     

     

    7 replies

    Super User
    July 7, 2023

    set rcc to PWR_LDO and try.

    Nsg1987Author
    Explorer II
    July 7, 2023

    @AScha.3 

    Did with PWR_LDO but found same issue.

     

    Nsg1987Author
    Explorer II
    July 7, 2023

    @Foued_KH I see in some post that you had some solution similar to my query.

    could you please see and help me with the issue mention above. 

    Nikhil 

    ST Employee
    July 7, 2023

    Hello @Nsg1987 , 

    Please make sur that you are following the recommendation in this section : 6.4.6 Debugging while using VIN or EXT as an external power supply.


    Foued

    Nsg1987Author
    Explorer II
    July 7, 2023

    @Foued_KH 

    Yes...I am following the same sequence.

    Nsg1987_0-1688724666091.png

    But still facing the same issue. Could you please suggest clock configuration required to operate the board with maximum speed i.e. 480 MHz

     

    Nikhil

    Super User
    July 7, 2023

    use set debug :

    AScha3_0-1688717227510.png

    +

    is normal debug connection working ?

    control voltages when debug : vin, 5v , 3v3 , 3v3 for st-link .

    Nsg1987Author
    Explorer II
    July 7, 2023

    @AScha.3 

    Debugger setting... Software system reset

    Nsg1987_0-1688718848574.png

    Normal debug is working if I set clock frequency to less than 100 MHz and with below set up

    Nsg1987_1-1688718941338.png

    control voltages are also okay. 

    Nikhil

     

     

    Graduate II
    July 7, 2023

    How current is sink from your 9V? Is stable

    Nsg1987Author
    Explorer II
    July 7, 2023

    @MM..1 

    roughly 120 mA. 9 V supply is given from regulated power supply which has capability to provide up to 5 A current if required and power supply is stable. VIN pin is accepting voltages from 7 V to 11 V. 

    Nikhil

    Nsg1987Author
    Explorer II
    July 7, 2023

    @Foued_KH 

    The clock configuration is as follows

    void SystemClock_Config(void)
    {
    RCC_OscInitTypeDef RCC_OscInitStruct = {0};
    RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};

    /** Supply configuration update enable
    */
    HAL_PWREx_ConfigSupply(PWR_EXTERNAL_SOURCE_SUPPLY);

    /** Configure the main internal regulator output voltage
    */
    __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE0);

    while(!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY)) {}

    /** Initializes the RCC Oscillators according to the specified parameters
    * in the RCC_OscInitTypeDef structure.
    */
    RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
    RCC_OscInitStruct.HSEState = RCC_HSE_BYPASS;
    RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
    RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
    RCC_OscInitStruct.PLL.PLLM = 1;
    RCC_OscInitStruct.PLL.PLLN = 120;
    RCC_OscInitStruct.PLL.PLLP = 2;
    RCC_OscInitStruct.PLL.PLLQ = 2;
    RCC_OscInitStruct.PLL.PLLR = 2;
    RCC_OscInitStruct.PLL.PLLRGE = RCC_PLL1VCIRANGE_3;
    RCC_OscInitStruct.PLL.PLLVCOSEL = RCC_PLL1VCOWIDE;
    RCC_OscInitStruct.PLL.PLLFRACN = 0;
    if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
    {
    Error_Handler();
    }

    /** Initializes the CPU, AHB and APB buses clocks
    */
    RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
    |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2
    |RCC_CLOCKTYPE_D3PCLK1|RCC_CLOCKTYPE_D1PCLK1;
    RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
    RCC_ClkInitStruct.SYSCLKDivider = RCC_SYSCLK_DIV1;
    RCC_ClkInitStruct.AHBCLKDivider = RCC_HCLK_DIV2;
    RCC_ClkInitStruct.APB3CLKDivider = RCC_APB3_DIV2;
    RCC_ClkInitStruct.APB1CLKDivider = RCC_APB1_DIV2;
    RCC_ClkInitStruct.APB2CLKDivider = RCC_APB2_DIV2;
    RCC_ClkInitStruct.APB4CLKDivider = RCC_APB4_DIV2;

    if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_4) != HAL_OK)
    {
    Error_Handler();
    }
    }

    Nsg1987Author
    Explorer II
    July 10, 2023

    @Sara BEN HADJ YAHYA I gone through your post for How to unbrick an STM32H7 after setting the wrong power mode How to unbrick an STM32H7 after setting the wrong ... - STMicroelectronics Community.

    I recovered my STM32H745ZIQ nucleo board with the same procedure mentioned in your post. 

    Could you please let me know the procedure to operate Nucleo-H745 wtih maximum frequency i.e. 480 MHz for M7. You can check my query above in this same thread.

    Thanks 

    Nikhil 

    Nsg1987AuthorAnswer
    Explorer II
    July 10, 2023

    Solution:

    Nsg1987_0-1688978293697.png

    Nsg1987_1-1688978313908.png

    connected external 9V to VIN pin of the board.

     

    Thank you all for your support.