cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L4 dual regular simultaneous mode using dual DMA as I don't want overrun of data. I want to know correct IOC setting for this mode.

AKhot.1
Senior

I wanted to know how to configure the ioc setting for dual regular simultaneous mode. I want to use ADC1 and ADC2 together. After the correct ioc setting, how to know to code for this mode. I took help of the available resources but getting an error in

void PeriphCommonClock_Config(void)

{

 RCC_PeriphCLKInitTypeDef PeriphClkInit = {0};

 /** Initializes the peripherals clock

 */

 PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_ADC;

 PeriphClkInit.AdcClockSelection = RCC_ADCCLKSOURCE_PLLSAI1;

 if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK)

 {

  Error_Handler();

 }

}

When I run the code in debug mode it goes in this error handler. I am not able to figure out why this is happening.


_legacyfs_online_stmicro_images_0693W00000dJxizQAC.png
_legacyfs_online_stmicro_images_0693W00000dJxiuQAC.png
_legacyfs_online_stmicro_images_0693W00000dJxipQAC.png

0 REPLIES 0