Synchronous GPDMA using GPIO and DAC ouptuts
Hi everyone: I'm trying to make an application over the NUCLEO U575zi-q, where some GPIO port pins (in this case, GPIO port E) are triggered in a synchronous way with the DAC output, and the values are held in two arrays, one for the DAC values and the other for the GPIOs pins. GPDMA is triggered usign a timer (TIM2).
I've started with the signal generation example, and made an example where both signals are sent in an apparently synchronous way, which is held in this repo:
https://github.com/osellaesteban/STM32U575ZIT6Q-gpio-dac-dma/tree/main
Based on that, I started modellying my particular application, I've made good advances, but I'm experiencing a very strange errors, since the DAC starts some samples before the GPIO, and after some iterations, the debuger runs to a HardFault_Handler associated to the HardFault_IRQn.
https://github.com/osellaesteban/STM32U575ZIT6Q-gpio-dac-dma/tree/HAL_Implementation
Any Idea on how to debug this kind of errors?
