2024-11-13 12:11 PM
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.
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