STM32u575 GPIO and DAC output using a timer triggered DMA
Hi everyone
I'm trying to get involed with the nulceo STM32u575 board developing an application that should perform synchronously a GPIOB pins output configurations over time (periodic) and set a specific analog value to each GPIO pins, So ideally I'd have two arrays, one for the DAC and the second for the GPIO, and a Timer instance that triggers the GPIO pattern and sets the DAC output value. I was considering performing this using a couple of Timer triggered instances, one for the GPIO and the other for the DAC.
By now, I started with the GPIO stuffs, and I'm able to configure the timer (checking the callback function), but I'm not getting the GPIO ouputs...
In the main function:
/* USER CODE BEGIN 2 */
uint32_t gpiovals[it_max] = {PB0_Pin | PB1_Pin, PB1_Pin | PB2_Pin, PB2_Pin | PB4_Pin, PB2_Pin | PB4_Pin, PB4_Pin, PB0_Pin , PB1_Pin, PB2_Pin};
TIM2->DIER |= (1<<8);// set UDE bit (update DMA request enable)
__HAL_TIM_ENABLE_DMA(&htim2, TIM_DMA_TRIGGER);
HAL_DMA_Start_IT(&handle_GPDMA1_Channel10, (uint32_t)gpiovals, (uint32_t)&(GPIOB->BSRR), it_max);
HAL_TIM_Base_Start_IT(&htim2);
/* USER CODE END 2 */
And attached, I left the ioc file. Any help will be appreciated!
Thanks in advance
