TLSRPGM
TLSRPGM copied to clipboard
Error[105] Set pin RST/Power!
Hi!
First of all, thank you for your work! And thanks for sharing your mods for the SGS01, too! I had the programmer running on TB-04, but did a git pull and now I can't get it to work anymore. Programming the TB goes fine:
C:\Users\Tony\git\TLSRPGM\sources\UART2SWire\tb-0x-pgm>tb_pgm.bat
C:\Users\Tony\git\TLSRPGM\sources\UART2SWire\tb-0x-pgm>python TlsrComProg.py -p COM9 -t500 we 0 ../uart2swire.bin
================================================
TLSR825x Floader version 22.12.24
------------------------------------------------
Open COM9, 230400 baud...
Reset module (RTS low)...
Activate (500 ms)...
Warning: Wrong RX-TX connection?
Connection...
Load <floader.bin> to 0x40000...
Bin bytes writen: 1960
CPU go Start...
------------------------------------------------
ChipID: 0x5562 (TLSR8253), Floader ver: 1.1
Flash JEDEC ID: 5e3213, Size: 512 kbytes
------------------------------------------------
Inputfile: ../uart2swire.bin
Write Flash data 0x00000000 to 0x00000ebc...
------------------------------------------------
(1) Warning
C:\Users\Tony\git\TLSRPGM\sources\UART2SWire\tb-0x-pgm>
But performing any read or write results in:
C:\Users\Tony\git\TLSRPGM>python TlsrPgm.py -w -t 1 -a 20 -c -pCOM9 -b3000000 rf 0 0x80000 test.bin
=======================================================
TLSR82xx TlsrPgm version 27.04.25
-------------------------------------------------------
Open COM9, 230400 bit/s... ok
PGM: ChipID: 0x5562 (TLSR825x), ver: 0.0.0.3
swdiv 5, addrlen 3, swbuf [5a 00 06 02 00 05], pwr On
SWire bit rate: 0.9600 Mbits/s
Set Speed UART PGM board 3000000 bits/s... ok
ReOpen COM9, 3000000 bit/s... ok
=== PreProcess ========================================
Error[105] Set pin RST/Power!
The same using wsl. TlsrPgm.py -s -p/dev/ttyS3 i works though... Any ideas? Maybe a delay between sending the command and evaluating the response in python is necessary?
As a workaround if anybody else stumbles across this: Omitting the -b option or using the default baud rate it works fine. So probably there is some issue with changing the baud at either end...
Speeds higher than 230400 baud in most USB-UART chips cannot work without RTS-CTS. That is, they cannot process a continuous stream larger than the internal buffer size of the USB-UART chip. There will be gaps. Accordingly, increasing the UART speed does not make sense, since you will not get more bandwidth. For higher speed, use the option with a direct connection to USB with TLSR8269. Or a USB-UART chip operating on USB2.0HS.
The installed USB-UART chip on the TB-04-KIT or TB-04/03F modules has a maximum continuous flow via UART RX-TX limited to 460800 Baud. This is provided that the USB hub works only for this device. Further increase of UART speed is possible only when working with small blocks of the size of the internal buffer of the USB-UART chip and pauses. Or when tracking RTS-CTS signals. Which in general will not change the bandwidth.
The TLSR8269 programmer does not use the UART baud rate setting at all. It operates at the USB-CDC bus speed of USB2.0FS at 600 kilobytes per second. The UART baud rate setting is only needed by the operating system and the UART driver on your computer to set delays when working with the UART.