Skip to content

Commit

Permalink
AP_Bootloader: use memcpy to check ECC failures instead of DMA transa…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
bugobliterator committed Jun 21, 2024
1 parent 56a7e52 commit 3e74684
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Tools/AP_Bootloader/support.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3e74684

Please sign in to comment.