Hi everyone, I am relatively new to arduino and I am trying to use this code
SAMD51 fast sampling with DMA
but when I try to include <Sd.h> or <SdFat.h> for datalogging I got
multiple definition of `DMAC_0_Handler'
Is there any way to avoid it?
Hi everyone, I am relatively new to arduino and I am trying to use this code
SAMD51 fast sampling with DMA
but when I try to include <Sd.h> or <SdFat.h> for datalogging I got
multiple definition of `DMAC_0_Handler'
Is there any way to avoid it?
Since no one has pointed out to you the problem is only one code can be used for each DMA control, you need to find another way to do what you want. However, how do you envision that DMA will do anything to change the speed of SD file writing or reading? All SD operation are slow because so much is involved in writing the 512 byte blocks and updating the directory records. DMA will offer no increase in speed to do that. Your program would still have to initiate the DMA and then wait to be sure the previous operation was completed before another could be started.
Logging data to an SD card, consider ExFatLogger or one of the variants. You might have to modify the logger to use more buffers depending on your data rate and data size.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.