del v1.9
This commit is contained in:
parent
b683630d0f
commit
145a725707
19 changed files with 8 additions and 21421 deletions
|
|
@ -52,7 +52,7 @@ _Далее, с помощью соединения BLE в [PHY62x2BTHome.html](
|
|||
|
||||
Файлы для обновления `FW Boot` по OTA находятся в директории [update_boot](https://github.com/pvvx/THB2/tree/master/update_boot). Процесс обновления `FW Boot` через OTA не является безопасным. Перед этим действием проверьте уровень батареи.
|
||||
|
||||
> Актуальная версия `FW Boot` для TH05Y_V3.1 с датчиком CHT832x - **v2.0**, для остальных - **v1.9**.
|
||||
> Актуальная версия `FW Boot` **v2.0**.
|
||||
|
||||
## Внутренняя распиновка GPIO:
|
||||
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ The main firmware files, BOOT_XXX_vXX.hex (for programming via USB-COM adapter)
|
|||
|
||||
Files for updating boot via OTA are located in the [update_boot](update_boot) directory. **
|
||||
|
||||
> The current version of `FW Boot` for TH05Y_V3.1 with CHT832x sensor is **v2.0**, for the rest - **v1.9**.
|
||||
> The current version of `FW Boot` is **v2.0**.
|
||||
|
||||
## Internal GPIO pinout:
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
# rdwr_phy62x2.py 08.12.2024 pvvx #
|
||||
# rdwr_phy62x2.py 12.12.2024 pvvx #
|
||||
|
||||
import serial
|
||||
import time
|
||||
|
|
@ -24,7 +24,7 @@ PHY_WR_BLK_SIZE = 0x2000
|
|||
|
||||
__progname__ = 'PHY62x2/ST17H66B Utility'
|
||||
__filename__ = 'rdwr_phy62x2.py'
|
||||
__version__ = "08.12.24"
|
||||
__version__ = "12.12.24"
|
||||
|
||||
def ParseHexFile(hexfile):
|
||||
try:
|
||||
|
|
@ -357,24 +357,6 @@ class phyflasher:
|
|||
else:
|
||||
return False
|
||||
return True
|
||||
def EraseSectorsFlash2(self, offset = 0, size = MAX_FLASH_SIZE):
|
||||
count = int((size + PHY_FLASH_SECTOR_SIZE - 1) / PHY_FLASH_SECTOR_SIZE)
|
||||
offset &= PHY_FLASH_SECTOR_MASK
|
||||
if count > 0 and count < 0x10000 and offset >= 0: # 1 byte .. 16 Mbytes
|
||||
while count > 0:
|
||||
if (offset & 0x0FFFF) == 0 and count > 15:
|
||||
if not self.cmd_era64k(offset):
|
||||
return False
|
||||
offset += 0x10000
|
||||
count-=16
|
||||
else:
|
||||
if not self.cmd_era4k(offset):
|
||||
return False
|
||||
offset += PHY_FLASH_SECTOR_SIZE
|
||||
count-=1
|
||||
else:
|
||||
return False
|
||||
return True
|
||||
def send_blk(self, stream, offset, size, blkcnt, blknum):
|
||||
self._port.timeout = 1
|
||||
print ('Write 0x%08x bytes to Flash at 0x%08x...' % (size, offset), end = ' '),
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
# rdwr_phy62x2.py 08.12.2024 pvvx #
|
||||
# rdwr_phy62x2.py 12.12.2024 pvvx #
|
||||
|
||||
import serial
|
||||
import time
|
||||
|
|
@ -24,7 +24,7 @@ PHY_WR_BLK_SIZE = 0x2000
|
|||
|
||||
__progname__ = 'PHY62x2/ST17H66B Utility'
|
||||
__filename__ = 'rdwr_phy62x2.py'
|
||||
__version__ = "08.12.24"
|
||||
__version__ = "12.12.24"
|
||||
|
||||
def ParseHexFile(hexfile):
|
||||
try:
|
||||
|
|
@ -357,24 +357,6 @@ class phyflasher:
|
|||
else:
|
||||
return False
|
||||
return True
|
||||
def EraseSectorsFlash2(self, offset = 0, size = MAX_FLASH_SIZE):
|
||||
count = int((size + PHY_FLASH_SECTOR_SIZE - 1) / PHY_FLASH_SECTOR_SIZE)
|
||||
offset &= PHY_FLASH_SECTOR_MASK
|
||||
if count > 0 and count < 0x10000 and offset >= 0: # 1 byte .. 16 Mbytes
|
||||
while count > 0:
|
||||
if (offset & 0x0FFFF) == 0 and count > 15:
|
||||
if not self.cmd_era64k(offset):
|
||||
return False
|
||||
offset += 0x10000
|
||||
count-=16
|
||||
else:
|
||||
if not self.cmd_era4k(offset):
|
||||
return False
|
||||
offset += PHY_FLASH_SECTOR_SIZE
|
||||
count-=1
|
||||
else:
|
||||
return False
|
||||
return True
|
||||
def send_blk(self, stream, offset, size, blkcnt, blknum):
|
||||
self._port.timeout = 1
|
||||
print ('Write 0x%08x bytes to Flash at 0x%08x...' % (size, offset), end = ' '),
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
# rdwr_phy62x2.py 08.12.2024 pvvx #
|
||||
# rdwr_phy62x2.py 12.12.2024 pvvx #
|
||||
|
||||
import serial
|
||||
import time
|
||||
|
|
@ -24,7 +24,7 @@ PHY_WR_BLK_SIZE = 0x2000
|
|||
|
||||
__progname__ = 'PHY62x2/ST17H66B Utility'
|
||||
__filename__ = 'rdwr_phy62x2.py'
|
||||
__version__ = "08.12.24"
|
||||
__version__ = "12.12.24"
|
||||
|
||||
def ParseHexFile(hexfile):
|
||||
try:
|
||||
|
|
@ -357,24 +357,6 @@ class phyflasher:
|
|||
else:
|
||||
return False
|
||||
return True
|
||||
def EraseSectorsFlash2(self, offset = 0, size = MAX_FLASH_SIZE):
|
||||
count = int((size + PHY_FLASH_SECTOR_SIZE - 1) / PHY_FLASH_SECTOR_SIZE)
|
||||
offset &= PHY_FLASH_SECTOR_MASK
|
||||
if count > 0 and count < 0x10000 and offset >= 0: # 1 byte .. 16 Mbytes
|
||||
while count > 0:
|
||||
if (offset & 0x0FFFF) == 0 and count > 15:
|
||||
if not self.cmd_era64k(offset):
|
||||
return False
|
||||
offset += 0x10000
|
||||
count-=16
|
||||
else:
|
||||
if not self.cmd_era4k(offset):
|
||||
return False
|
||||
offset += PHY_FLASH_SECTOR_SIZE
|
||||
count-=1
|
||||
else:
|
||||
return False
|
||||
return True
|
||||
def send_blk(self, stream, offset, size, blkcnt, blknum):
|
||||
self._port.timeout = 1
|
||||
print ('Write 0x%08x bytes to Flash at 0x%08x...' % (size, offset), end = ' '),
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue