cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with adc configuration - Nucleo WL55JC1

Silver18020
Associate

Hello Everyone,

I'm quite new with this kind of coding.

I'm editing two dual core projects written for Nucleo WL55JC1, Node2 and Node1. Node2 allready implements the reading from adc and now i have to implement into Node1. I would like that the "adc.c" file was the same in the two projects so i checked the .ioc file from Node2 and I configured the .ioc of the Node1 in the same way doing some changes (Node2 has to read from 3 sensors, Node1 just from one).
Now, the two adc.c files are basically the same but the one in the Node1 implements the code

 RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};

----------------------------

/** Initializes the peripherals clocks
  */
    PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_ADC;
    PeriphClkInitStruct.AdcClockSelection = RCC_ADCCLKSOURCE_HSI;
    if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
    {
      Error_Handler();
    }

and the one in the Node2 don't. For what I understand it regards the adc clock so i checked the Node2's .ioc under the Clock Configuration Tab but the ADC Clock Mux is grayed out.

Now, why the ADC Clock Mux is grayed out? Why the Node 2 doesn't implements that code? What can I do to make the Node1 to do the same?


Please keep in mind that when I open the .ioc files pop up a windows that says that a new firmware is available 

Silver18020_0-1763315197803.png

is this related to my problems?

 

0 REPLIES 0