cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronous GPDMA using GPIO and DAC ouptuts

eosella
Associate II

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?

 

1 REPLY 1
Sarra.S
ST Employee

Hello @eosella

This could be a synchronization issue, please share you TIM configuration!

The provided links are not functional

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.