cancel
Showing results for 
Search instead for 
Did you mean: 

GPDMA GPIO Output Configuration issues

eosella
Associate

Hello I'm working with a nucleo u575zi-q board where i've to set many GPIO pins in a synchronos way using GPDMA. I've successfully used the DAC and DMA example in the IDE, but Igot stacked with the GPIO output.

I followed the case posted here, triyed with different timers, etc, but couldn't get it on work.

eosella_0-1731528409822.png

eosella_1-1731528445898.png

 

In the user code section on main I stated as follows

 

 

/* USER CODE BEGIN 2 */

  uint32_t gpiovales[10] = {0x0,0x01,0x02,0x03,0x08,0x09,0x0A,0x0B}; //I use GPIOB0,1,2, and 4
  HAL_DMA_Start(&handle_GPDMA1_Channel11, (uint32_t) gpiovales, (uint32_t)&(GPIOB->BSRR), 10);
  HAL_TIM_Base_Start(&htim1);
  HAL_TIM_OC_Start(&htim1, TIM_CHANNEL_1);
  TIM1->DIER |= (1<<8); // updates the dma request enable
  /* USER CODE END 2 */

 

 

Any help / orientation will be helpful

0 REPLIES 0