E180-Z6907A
I use tlsr8269 in module E180-Z6907A. compiled firmware changing frequency to 12 MHz. Such error often occurs. What could be the problem?
=======================================================
TLSR82xx TlsrPgm version 31.10.23
-------------------------------------------------------
Open COM3, 230400 bit/s... ok
PGM: ChipID: 0x5327 (TLSR8269), ver: 0.0.0.2
swdiv 5, addrlen 3, swbuf [5a 00 06 02 00 05], pwr On
SWire bit rate: 1.2800 Mbits/s
=== PreProcess ========================================
CPU Stop... ok
=== Process ===========================================
Inputfile: .\ZG-102Z_em.bin
Write 0 to Flash Status Register...
Flash Status Register: 0x00
Write Flash data 0x00000000 to 0x00080000...
Write to 0x005200...Traceback (most recent call last):
File "TlsrPgm.py", line 1299, in <module>
main()
File "TlsrPgm.py", line 1188, in main
ret = pgm.WriteBlockFlash(stream, offset, size, bool(args.operation == 'we'))
File "TlsrPgm.py", line 756, in WriteBlockFlash
if not self.WaitingFlashReady():
File "TlsrPgm.py", line 420, in WaitingFlashReady
data = self.command(struct.pack('<BBH', self.CMD_FLASH_GET_STATUS, 0, 0), 7)
File "TlsrPgm.py", line 240, in command
w = self.write(crc_blk(wblk))
File "TlsrPgm.py", line 228, in write
return self._port.write(wblk)
File "C:\Users\hunte\AppData\Local\Programs\Python\Python38\lib\site-packages\serial\serialwin32.py", line 325, in write
raise SerialTimeoutException('Write timeout')
serial.serialutil.SerialTimeoutException: Write timeout
=======================================================
TLSR82xx TlsrPgm version 31.10.23
-------------------------------------------------------
Open COM3, 230400 bit/s... ok
PGM: ChipID: 0x5327 (TLSR8269), ver: 0.0.0.2
swdiv 5, addrlen 3, swbuf [5a 00 06 02 00 05], pwr On
SWire bit rate: 1.2800 Mbits/s
=== PreProcess ========================================
CPU Stop... ok
=== Process ===========================================
Inputfile: .\ZG-102Z_em.bin
Write 0 to Flash Status Register...
Flash Status Register: 0x00
Write Flash data 0x00000000 to 0x00080000...
Error get Flash Status! (102)
Traceback (most recent call last):
File "D:\telink\TLSRPGM-new3\TlsrPgm.py", line 1299, in <module>
main()
File "D:\telink\TLSRPGM-new3\TlsrPgm.py", line 1199, in main
pgm.close()
File "D:\telink\TLSRPGM-new3\TlsrPgm.py", line 267, in close
self.command(struct.pack('<BBH', self.CMD_FUNCS, self.CMDF_UART_BAUD, 1), 6)
File "D:\telink\TLSRPGM-new3\TlsrPgm.py", line 240, in command
w = self.write(crc_blk(wblk))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\telink\TLSRPGM-new3\TlsrPgm.py", line 228, in write
return self._port.write(wblk)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hunte\AppData\Local\Programs\Python\Python312\Lib\site-packages\serial\serialwin32.py", line 325, in write
raise SerialTimeoutException('Write timeout')
serial.serialutil.SerialTimeoutException: Write timeout
PS D:\telink\TLSRPGM-new3> python TlsrPgm.py -w -s -p COM3 we 0 .\ZG-102Z_em.bin
After this, the module does not despair, only its reset helps.
=======================================================
TLSR82xx TlsrPgm version 31.10.23
-------------------------------------------------------
Open COM3, 230400 bit/s... Error!
Work depends on the quality of the USB connection. Cords and Hub.
Tried different cables and different ports, nothing changes. This is not a constant error, sometimes everything works fine. I also noticed a bug that the dump seemed to be read without errors, but the binary file contains only 00. With the same USB connection and connection to the module being flashed, if an error occurs, it is enough to reset (I made a special button) and everything will work, maybe not the first time. I tried to experiment and on another similar module I changed the quartz to 16 MHz and uploaded your firmware, the symptoms are the same.
TLSR826x has a Flash power-off feature. This is specified in the SDK. If Flash is powered off when connected, it is not readable.
In debug modes I disabled this function: blc_pm_disableFlashShutdown_when_suspend()
I haven't researched how to enable Flash in TLSR826x. When doing a full reset of the SoC, the Flash is always readable.
But if the programmer is connected during SoC sleep, then Flash is disabled. You need to execute the reboot command and stop the CPU again.
PS: Google translator works terribly.
When I use a programmer on tlsr8258 (tb-03f) such errors do not occur. But with a programmer on tlsr8269 this happens often. I thought maybe the E180-Z6907A module is different from the E104-BT10-G and something needs to be changed in its firmware.
TLSR8269 worked stably for me only when connected via USB-Hub. I don't know what needs to be changed in the USB processing program.
I have it through a hub too. I'll try through a hub on another chip, maybe that's the issue.
I ran out of modules with TLSR8269 and use TB-03F. It's been 5 years already...
https://sl.aliexpress.ru/p?key=SEqMGYT The price is not much higher, but the speed of work is several times greater. I'll experiment with hubs now. Thanks for your software.
But I have a lot of TB-30F-Kit and I don't need to solder anything on them... And the TLSR826x series is completely outdated. It is not used in development. Next comes the TLSR825x series, and then a newer one on RISC-V.