cancel
Showing results for 
Search instead for 
Did you mean: 

Using a GTM / TOM as a source for eDMA

GFerr.5
Associate

Hi all!!!

I have a problem with GTM / TOM and eDMA.

I am using a SPC58-BERNINA (STEVAL-TTM004V1) and SPC5Studio.

My goal is to start a copy via eDMA channel when an interrupt of a TOM channel is triggered (suppose CN0 == CM0).

In my example I am using GTM TOM1-CH7.

Reading table 40 of paragraph 7.3.6.6 I saw that GTM_TOM1_IRQ7 is part of DMACHMUX_3 line 39 so I have chosen eDMA's channel 48 and I initialized DMACHMUX_3 with source 39 (27h).

In the same project I am using other eDMA channels, the "start" of which is determined by the ADC_SAR_***_EOC without problems.

Del TOM I have enabled interrupts and I have verified that the interrupt is actually called. However, I cannot direct this signal to the eDMA.

It should be very simple and straightforward, DMACHMUX has a lot of GTM inputs, but I couldn't.

Can someone help me?

Thanks,

Gionatha


_legacyfs_online_stmicro_images_0693W00000KdOPw.png
_legacyfs_online_stmicro_images_0693W00000KdOSH.png

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions
GFerr.5
Associate

Thanks to the help of Emanuele Castronuovo of ST we found the error.

The interrupt of channel 7 of the TOM is, due to the ICM module, number 3 (and not 7).

Therefore the DMAMUX has as its source the number 35 and not the number 39.

Thanks,

Gionatha

View solution in original post

1 REPLY 1
GFerr.5
Associate

Thanks to the help of Emanuele Castronuovo of ST we found the error.

The interrupt of channel 7 of the TOM is, due to the ICM module, number 3 (and not 7).

Therefore the DMAMUX has as its source the number 35 and not the number 39.

Thanks,

Gionatha