Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TH05Y Flashproblem #85

Open
cheesemountain0815 opened this issue Nov 23, 2024 · 13 comments
Open

TH05Y Flashproblem #85

cheesemountain0815 opened this issue Nov 23, 2024 · 13 comments

Comments

@cheesemountain0815
Copy link

Ich bekomme beim Versuch zu verbinden diesen Fehler

C:\Python3>python rdwr_phy62x2.py -p COM8 -e -r wh BOOT_TH05_v19.hex

PHY62x2 Utility version 11.03.24

Connecting...
PHY62x2 - Error Reset!
Check connection TX->RX, RX<-TX, RTS->RESET and Chip Power!

@pvvx
Copy link
Owner

pvvx commented Nov 23, 2024

Check connection TX->RX, RX<-TX, RTS->RESET and Chip Power!

@cheesemountain0815
Copy link
Author

I've already done that
I don't understand how to connect REST_N

@pvvx
Copy link
Owner

pvvx commented Nov 23, 2024

The RTS or DTR pin from the adapter must be connected to "REST_N" on the thermometer board.


If the adapter does not have RTS or DTR pins, you can quickly close and open the "REST_N" contact to GND during the script launch. But this must be done in time. It is quite difficult to do this manually and may not work the first time...

@cheesemountain0815
Copy link
Author

RX TX 3V3 is connected to the adapter
ret_n must be plugged in? and then remove

@pvvx
Copy link
Owner

pvvx commented Nov 23, 2024

RX TX 3V3 is connected to the adapter

Is GND (minus power supply) connected?

ret_n must be plugged in? and then remove

For automatic start of programming "REST_N" must be connected to the adapter's RTS or DTR pin.
https://github.com/pvvx/THB2?tab=readme-ov-file#firmware
If there is no RST pin on the adapter, then short the RESET pin to GND (-Vbat) and quickly open it when the script starts (it may take a few tries).

@cheesemountain0815
Copy link
Author

GND is plugged in, doesn't work either

@cheesemountain0815
Copy link
Author

one more question, how can I change the build rate

@cheesemountain0815
Copy link
Author

now this issue

Connecting...
Traceback (most recent call last):
File "C:\Python3\rdwr_phy62x2.py", line 738, in
main()
~~~~^^
File "C:\Python3\rdwr_phy62x2.py", line 575, in main
if not phy.Connect(args.baud):
~~~~~~~~~~~^^^^^^^^^^^
File "C:\Python3\rdwr_phy62x2.py", line 235, in Connect
read = self._port.read(6);
File "C:\Python3\Lib\site-packages\serial\serialwin32.py", line 295, in read
raise SerialException("GetOverlappedResult failed ({!r})".format(ctypes.WinError()))
serial.serialutil.SerialException: GetOverlappedResult failed (PermissionError(13, 'Zugriff verweigert', None, 5))

@pvvx
Copy link
Owner

pvvx commented Nov 23, 2024

one more question, how can I change the build rate

BAUD rate?

python rdwr_phy62x2.py -h

@cheesemountain0815
Copy link
Author

what is the exact command to change theBuilds Rate

@pvvx
Copy link
Owner

pvvx commented Nov 23, 2024

what is the exact command to change theBuilds Rate

> python rdwr_phy62x2.py -h
usage: rdwr_phy62x2.py [-h] [--port PORT] [--baud BAUD] [--allerase] [--erase]
                       [--reset] [--start START] [--write WRITE]
                       {wh,we,wf,er,ew,ea,rc,i} ...

PHY62x2 Utility version 11.03.24

positional arguments:
  {wh,we,wf,er,ew,ea,rc,i}
                        Run rdwr_phy62x2.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
    ew                  Erase Flash Work Area
    ea                  Erase All Flash (MAC, ChipID/IV)
    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
  --start START, -s START
                        Application start address for hex writer (default:
                        0x1fff1838)
  --write WRITE, -w WRITE
                        Flash starting address for hex writer (default:
                        0x00005000)
--baud  115200
--baud  250000
--baud  500000
--baud  1000000

-b  115200
-b  250000
-b  500000
-b  1000000

@cheesemountain0815
Copy link
Author

it doesn't work
pyserial-miniterm says

--- Available ports:
--- 1: COM1 'Communications Port (COM1)'
--- 2: COM8 'USB-SERIAL CH340 (COM8)'
--- Enter port index or full name: 2
--- Miniterm on COM8 9600,8,N,1 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---

@cheesemountain0815
Copy link
Author

Have TeamViewer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants