This PR abstract flash api to make it easier to have generic programmer e.g use with rp2040 tester. Following APIs are added as abstract to Adafruit_DAP
getTypeID(): handful to know which dap (sam, samx5, nrf, stm32) is using
select/deselect() which is already implemented by all specific dap
erase(), program_start(), programBlock(), programFlash(): already implemented in all dap
add computeFlashCRC32() for compute checksum on flash contents for verifying. Note: samd21/51 has its own hardware to compute. Others will use read_block() with software crc32
protect/unprotectBoot() API for protect and unprotect bootloader region.
In addition, this PR also fix several warnings, update SdFat to v2.
This PR abstract flash api to make it easier to have generic programmer e.g use with rp2040 tester. Following APIs are added as abstract to Adafruit_DAP
In addition, this PR also fix several warnings, update SdFat to v2.