pvvx / PHY62x2

PHY62x2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Utils for PHY62x2

Pins: USB-COM / Board

DTR->TM

RTS->RSTN

TX->RX

RX<-TX

Usage

usage: rdreg_phy6202 [-h] [--port PORT] [--baud BAUD] address size

RdRegs-PHY6202 Utility version 30.11.19-2

positional arguments:
  address               Start address
  size                  Size of region to dump

options:
  -h, --help            show this help message and exit
  --port PORT, -p PORT  Serial port device
  --baud BAUD, -b BAUD  Set Baud
usage: WrFlash_phy6202 [-h] [--port PORT] [--baud BAUD] [--chiperase]
                       address filename
WrFlash-PHY6202 Utility version 07.12.19

positional arguments:
  address               Start Flash address
  filename              File name

options:
  -h, --help            show this help message and exit
  --port PORT, -p PORT  Serial port device
  --baud BAUD, -b BAUD  Set Port Baud (115200, 250000, 500000, 1000000)
  --chiperase, -c       All Chip Erase
usage: rdwr_phy6222.py [-h] [--port PORT] [--baud BAUD] [--allerase] [--erase]
                       [--reset]
                       {wh,we,wf,er,ea,rc,i} ...

PHY6222 Utility version 29.12.23

positional arguments:
  {wh,we,wf,er,ea,rc,i}
                        Run rdwr_phy6222.py {command} -h for additional help
    wh                  Write hex file to Flash
    we                  Write bin file to Flash with sectors erases
    wf                  Write bin file to Flash without sectors erases
    er                  Erase Region (sectors) of Flash
    ea                  Erase All Flash
    rc                  Read chip bus address to binary file
    i                   Chip Information

options:
  -h, --help            show this help message and exit
  --port PORT, -p PORT  Serial port device
  --baud BAUD, -b BAUD  Set Port Baud (115200, 250000, 500000, 1000000)
  --allerase, -a        Pre-processing: All Chip Erase
  --erase, -e           Pre-processing: Erase Flash work area
  --reset, -r           Post-processing: Reset

Read all Flash

python3 rdreg_phy6202.py -p COM5 -b 1000000 0x11000000 0x80000

Write all Flash

python3 write_phy6202.py -p COM18 -c -b 500000 0 r11000000-00080000.bin

About

PHY62x2


Languages

Language:Python 99.6%Language:Batchfile 0.4%