Hey there, I'd love to have a play around with your power profiling changes to CMSIS DAP. Would you mind setting out some instructions for what is needed and how to go about building this project. I am trying to build it for a LPC11U35 interface chip to a NRF51822 target.
Would you mind maybe producing and sharing a binary release?
To support erasing sectors on demand, we need to know how to convert an address to a sector number. If sectors' size is all the same, It will be easy. But target like LPC1768 has different sector size.
@sg-
The struct FlashDevice contains information of mapping address to sector number. We should probably make the TARGET_FLASH structure include the location of FlashDevice in flash algorithm blob.
Given that flash.ram_to_flash_bytes_to_be_written is externally defined is doesnt seem safe to apply this logic, rather only write chunks of the size defined by the flash algorithm. Seems like a failure point but its late for me and hard to follow all the logic. Any ideas?