STM32G0 Nucleo DMA Question
I use nucleo-g071rb board. I want to read Infrared datas via IR Led and send it to another IR receivers with different IR Led. For purpose I used timer2's channel 1 with input capture direct mode. I used dma here to see datas. I have a problem with dma.
I made polarity to both edges and I don't know exact data number, because different IR transmitters have different data sizes. That's why I used HAL_TIM_IC_Start_DMA function with 512 half word size. Here I want to record all datas from zero but I see it continues to record where is stays. I mean if 71 bytes datas came, it continues to write from 72. How I set it to start from 0 every time ?
