issues
search
tuya-cloudcutter
/
bk7231tools
This is a collection of tools to interact with and analyze artifacts for BK7231 MCUs
MIT License
38
stars
6
forks
source link
Refactor BK7231Serial / implement flash writing / fix CRC32 on BK7231N
#5
Closed
kuba2k2
closed
2 years ago
kuba2k2
commented
2 years ago
refactored
BK7231Serial
to use command-response packet objects, which makes it easier to add new commands and makes code cleaner
made flash reading use wrapped (0x200000) addresses forcefully
implemented methods for erasing, writing and programming (erase+write) the flash, programmatically
added toggling RTS pin upon startup, so connecting it to board's RESET makes auto-reset possible
fixed CRC32 calculation on BK7231N
notkmhn
commented
2 years ago
Thank you very much for this! LGTM
BK7231Serial
to use command-response packet objects, which makes it easier to add new commands and makes code cleaner