cancel
Showing results for 
Search instead for 
Did you mean: 

eMIOS, eDMA request and INTC

aurelien23
Senior
Posted on February 23, 2016 at 15:47

Hello,

I can't find any eDMA+eMIOS example in SPC5 Studio (only DSPI and ADC are available). Can I get one from the expert team?

I would like to trigger an eDMA request after an eMIOS channel counted 16 periods on an external pin. This DMA request would transfer the counter value of another eMIOS channel (to measure the 16 period time) and when done, trigger an INTC interrupt to use the transfered value and calculate the period.

I'm using SPC564B74.

Thank you
This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
2 REPLIES 2
Erwan YVIN
ST Employee
Posted on February 25, 2016 at 10:17

Hello Aurelien ,

we have not implemented EDMA Support on EMIOS Low level drivers (SPC5Studio)

You should use the patch mode after configuring EDMA Channels.

I am trying to collect an example from Autosar & SOC Functional valid guys

       Best regards

                      Erwan

aurelien23
Senior
Posted on March 01, 2016 at 17:27

Hello Erwan,

yes please, any example would be appreciated. SPC564B74.

I'm using DMA channel 28 (first not used by generated code). eMIOS0 ch1 corresponds to DMA_MUX channel 18.

I'm able to request a DMA transfer by the software (setting SPC5_EDMA.SSBR = 28). But when I set DMA bit in eMIOS CCR, the interrupt is not generated anymore, logic, but no DMA request is raised... (the DMA end of transfer interrupt is not called, the destination address is still empty and HRSL.HRS28 is 0...).