diff --git a/Tools/AP_Bootloader/support.cpp b/Tools/AP_Bootloader/support.cpp index 9a02124b1a10d9..a086d30e875e61 100644 --- a/Tools/AP_Bootloader/support.cpp +++ b/Tools/AP_Bootloader/support.cpp @@ -553,11 +553,7 @@ void check_ecc_errors(void) break; } #endif - dmaStartMemCopy(dma, - STM32_DMA_CR_PL(0) | STM32_DMA_CR_PSIZE_BYTE | - STM32_DMA_CR_MSIZE_BYTE, - ofs+(uint8_t*)FLASH_BASE, buf, sizeof(buf)); - dmaWaitCompletion(dma); + memcpy((uint8_t*)buf, (uint8_t*)FLASH_BASE+ofs, sizeof(buf)); ofs += sizeof(buf); } dmaStreamFree(dma);