cancel
Showing results for 
Search instead for 
Did you mean: 

DMA: Reset hidden increment registers

Chr. Fahrni
Associate II
Posted on October 31, 2012 at 08:05

I emulate an I2C eeprom. I first receive the address, then I set the DMA-Source pointer to my tx-array (DMA_MemoryBaseAddr). As I have configured autoincrement, several bytes will be transferred.

When the second request starts I set the DMA-Source at an other tx-array Index (Disable and Enable is done).

Because of the incrementet address I get the wrong data in the 2nd sequence.

Question: Is there a possibility to reset the offset in the hidden increment register?

#dma-stm32-auto-increment
1 REPLY 1
GHITH.Abdelhamid
Associate II
Posted on October 31, 2012 at 21:24

you need to write DMA_SxNDTR to start the transfer from offset 0.