Mercurial > lcfOS
diff python/stlink.py @ 121:347d7d8b96c0
Cleanup
author | Windel Bouwman |
---|---|
date | Sat, 12 Jan 2013 12:35:02 +0100 |
parents | f51791638cae |
children | 9f1094b1587a |
line wrap: on
line diff
--- a/python/stlink.py Sat Jan 12 10:56:12 2013 +0100 +++ b/python/stlink.py Sat Jan 12 12:35:02 2013 +0100 @@ -64,27 +64,6 @@ FLASH_F4_CR_SNB_MASK = 0x38 FLASH_F4_SR_BSY = 16 -# flashloaders/stm32f4.s -loader_code_stm32f4 = bytes([ - 0x07, 0x4b, - - 0x62, 0xb1, - 0x04, 0x68, - 0x0c, 0x60, - - 0xdc, 0x89, - 0x14, 0xf0, 0x01, 0x0f, - 0xfb, 0xd1, - 0x00, 0xf1, 0x04, 0x00, - 0x01, 0xf1, 0x04, 0x01, - 0xa2, 0xf1, 0x01, 0x02, - 0xf1, 0xe7, - - 0x00, 0xbe, - - 0x00, 0x3c, 0x02, 0x40 -]) - def calculate_F4_sector(address): """ from 0x8000000 to 0x80FFFFF @@ -110,7 +89,6 @@ sectors = [] while off < size: sectornum, sectorsize = calculate_F4_sector(address + off) - #print('num: {0} size: {1:X} offset: {2}'.format(sectornum, sectorsize, off)) sectors.append((sectornum, sectorsize)) off += sectorsize return sectors