2022-03-21 04:40 AM - edited 2023-11-20 09:07 AM
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
Solved! Go to Solution.
2022-03-22 12:53 AM
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
2022-03-22 12:53 AM
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