This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MibSPI with DMA transfer - TMS570LS3137

Other Parts Discussed in Thread: HALCOGEN

Hello,

I want to transfer TG0 with DMA, at MibSPI port 1.

The problem is at mibspi dma enable, DMACTRL[0] can't be set with the values I need, it gets 0 in all its fields.

I should mention that all the other MinSPI1 registers get the correct values.

Could you tell me why is this happening, do DMACTRLx registers depend on something else?

Thank you.

  • Corina,

    Which device are you using?
    Are you using Halcogen to generate your startup code and driver?

    Halcogen provides an example of MIBSPI code using DMA.
    To check this example, in Halcogen create a project and select TMS570LS31x37 as family.
    For the device, select TMDX570LS31HDK.

    Now go to Help->Help Topics->Examples. Select example_mibspiDma.c.
    There will be a walk through defining all the steps to create a basic test using MIBSPI and DMA.

    Please have a try and let me know if this is helpful.

  • Hello Jean-Marc,

    I looked over the example and it was helpful.

    Am in the meantime, I figured out why DMACTRL0 wasn't set as I expected, it was wrongly mapped to RAM memory.

    Thank you.