2018-12-04 06:42 AM
Hello all,
I have a NUCLEO-L073RZ with SX1272MB2DAS LoRa RF Expansion board and I’m not being able to run the firmware “End_Node�? provided in I-CUBE-LRWAN (1.2.0).
The problem comes when “SystemClock_Config�? is called in main:
void SystemClock_Config( void )
{
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
/* Enable HSE Oscillator and Activate PLL with HSE as source */
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
RCC_OscInitStruct.HSEState = RCC_HSE_OFF;
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;
RCC_OscInitStruct.PLL.PLLMUL = RCC_PLLMUL_6;
RCC_OscInitStruct.PLL.PLLDIV = RCC_PLLDIV_3;
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
{
Error_Handler();
}
The HAL_RCC_OscConfig(&RCC_OscInitStruct) function always return a HAL_ERROR and the goes to Error_Handler();
I’ve checked inside HAL_RCC_OscConfig function, and it seem that something wrong with PLL configuration in the next instruction:
if(__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK)
Does anybody know why is not well initialized the clock in this Nucleo board?
Really I don’t understand, because it in and example downloaded from ST and also using an original bord
Sure I’m doing something wrong but I don’t see what.
I’m using IAR Worknbench 8.10.1
Thank you for your help,
Best regards,
Jai
2018-12-09 11:58 PM
I'm still with the same problem :(
Could anybody help me please?
Thank you for your help,
Regards,