We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad4521b commit 1136838Copy full SHA for 1136838
stm32loader.py
@@ -307,7 +307,7 @@ def _page_erase(self, pages):
307
# page erase, see ST AN3155
308
nr_of_pages = (len(pages) - 1) & 0xFF
309
self.serial.write(bytes([nr_of_pages]))
310
- checksum = 0xFF
+ checksum = nr_of_pages
311
for page_number in pages:
312
self.serial.write(bytes([page_number]))
313
checksum = checksum ^ page_number
0 commit comments