ARMmbed / dapjs

JavaScript interface to CMSIS-DAP
https://armmbed.github.io/dapjs
MIT License
113 stars 46 forks source link

Implemented 1-byte memory operations #92

Closed ccattuto closed 2 years ago

ccattuto commented 2 years ago

Added an implementation of readMem8() and writeMem() modeled after the other 16-bit and 32-bit memory operations (tested on a Cortex-M4 system).

ccattuto commented 2 years ago

The original readMem16() was buggy: it didn't perform the required shifting and masking of the return value. I fixed that and adapted readMem8() accordingly. Both are now in line with the pyOCD implementation and were extensively tested on a Cortex-M system.

thegecko commented 2 years ago

Could you also add the readmem8 commands to the implementation status in the README file?

thegecko commented 2 years ago

Thanks!