Skip to main content
Visitor II
March 7, 2023
Solved

Hard Fault in Azure RTOS NetX Duo NUCLEO-F7 with newly upgraded CubeIDE V1.12

  • March 7, 2023
  • 1 reply
  • 1068 views

Once again.....trying to implement an Azure RTOS NX TCP Server application on the F7 Nucleo board (since H7 processors will not be available any time soon). I ran into a hard fault at the HAL_GetTick instruction below:

 /*-------------------------------- PLL Configuration -----------------------*/
 /* Check the parameters */
 assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState));
 if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE)
 {
 /* Check if the PLL is used as system clock or not */
 if(__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL)
 {
 if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
 {
 /* Check the parameters */
 assert_param(IS_RCC_PLLSOURCE(RCC_OscInitStruct->PLL.PLLSource));
 assert_param(IS_RCC_PLLM_VALUE(RCC_OscInitStruct->PLL.PLLM));
 assert_param(IS_RCC_PLLN_VALUE(RCC_OscInitStruct->PLL.PLLN));
 assert_param(IS_RCC_PLLP_VALUE(RCC_OscInitStruct->PLL.PLLP));
 assert_param(IS_RCC_PLLQ_VALUE(RCC_OscInitStruct->PLL.PLLQ));
 
 /* Disable the main PLL. */
 __HAL_RCC_PLL_DISABLE();
 
 /* Get Start Tick */
 tickstart = HAL_GetTick(); <<<<<<<< Hard Fault >>>>>>

This is using a newly updated CubeIDE (V1.12) and imported example code.

Any sage advice?

thx

Mikeh

    This topic has been closed for replies.
    Best answer by MHoop.1

    Sorry....operator error. Plugged in the wrong Nucleo board. With the correct Nucleo board I am able to get the basic example running with no problem.

    1 reply

    MHoop.1AuthorAnswer
    Visitor II
    March 7, 2023

    Sorry....operator error. Plugged in the wrong Nucleo board. With the correct Nucleo board I am able to get the basic example running with no problem.