2023-03-07 09:29 AM
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
Solved! Go to Solution.
2023-03-07 10:07 AM
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.
2023-03-07 10:07 AM
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.