AnsweredAssumed Answered

DMA from stack, why not?

Question asked by Legrand.Thomas.001 on Aug 20, 2013
Latest reply on Aug 20, 2013 by Clive One
Hello,

I was writting a driver for SPI transfer using double DMA ... to test it I wrote a few lines of code that prepared a buffer (locally), and sent it over SPI.

The result was the first 4 bytes were ok then the data was totally corrupted.

I searched the forum and found this post from our hero, Clive : https://my.st.com/f578fd6e

Tested with a buffer not declared locally (so not on the stack) and it's working as expected (no data corruption).

So now my question is simple ... why ?

Thomas.

Outcomes