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.

TMS570LS1114: SPI with DMA not working properly when using debugger

Part Number: TMS570LS1114

Hello,

I am working on an application using a TMS570LS1114. I use the XDS110 to flash the microcontroller.


In order to increase the speed, I am using the SPI with DMA.
My code seems to work properly unless I am using the debugger with breakpoints outside the DMA interruption.

I can tell my code is working since the SPI communication works.
But since I break in the main code, the next DMA packet will be sent incomplete.

Do you know where this behavior come from ?

Regards,

  • Hi Corentin,

    The DMA supports four different behaviors in suspend mode. These behaviors can be configured by programming DEBUGMODE of GCTRL register:
    1. Immediate stop at a DMA channel arbitration boundary. 
    2. Finish current frame transfer and continue after suspend ends.
    3. Finish current block transfer and continue after suspend ends.
    4. Ignore the suspend. The DMA continues to be operational as in functional mode when debug mode is active.

    The default configuration is #4