2024-07-17 12:12 AM
Hello,
I have a SPI TX DMA,
and I need to do the following
I guess the last step (6) is not possible ? right ? or is there a way to change the current position
I tried to change it using the __HAL_SET_COUNTER but it is not working
Do I miss something ?
Vincent
Solved! Go to Solution.
2024-07-17 06:20 AM
You cannot resume a DMA transfer after changing the size. It always starts at the beginning of the buffer with NDTR at the max/starting value.
2024-07-17 06:20 AM
You cannot resume a DMA transfer after changing the size. It always starts at the beginning of the buffer with NDTR at the max/starting value.
2024-07-17 07:00 AM
This is what I thought as well...
the only way to do it is to shift the memcpy of the new buffer in 2 parts to simulate the resume of the position.
thanks
Vincent