Skip to main content
GFerr.5
Associate
March 21, 2022
Solved

Using a GTM / TOM as a source for eDMA

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 topic has been closed for replies.
    GFerr.5
    GFerr.5Best answer
    Associate
    March 22, 2022

    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

    1 reply

    GFerr.5
    GFerr.5AuthorBest answer
    Associate
    March 22, 2022

    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