Skip to main content
Handzic.Dirk
Associate III
June 21, 2018
Question

STM32H743 dual ADC w DMA

  • June 21, 2018
  • 1 reply
  • 962 views
Posted on June 21, 2018 at 11:37

The original post was too long to process during our migration. Please click on the attachment to read the original post.
    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    June 21, 2018
    Posted on June 21, 2018 at 13:31

    Sounds like a cache coherency issue.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Handzic.Dirk
    Associate III
    June 21, 2018
    Posted on June 21, 2018 at 13:55

    That is why I added

    SCB_InvalidateDCache_by_Addr((uint32_t *) &sample_buffer[0], 4*P_SAMPLES);

    to the transfer complete handling. Is there any better way? Initially I had a call to SCB_InvalidateDCache_by_Addr() at half complete transfer as well but due to the high sample rate I had to remove it.

    Tesla DeLorean
    Guru
    June 21, 2018
    Posted on June 21, 2018 at 14:49

    >>Is there any better way?

    Use an uncached/unbuffered memory region?

    Change the MPU configuration for the region you are using, and expect to act on externally?

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..