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

Unrealiable flashing with TLSR825xComFlasher #10

Open
diggit opened this issue Jul 12, 2024 · 2 comments
Open

Unrealiable flashing with TLSR825xComFlasher #10

diggit opened this issue Jul 12, 2024 · 2 comments

Comments

@diggit
Copy link

diggit commented Jul 12, 2024

Hi,
After flashing ZigbeeTLc into modified ZTH02 using TLSR825xComFlasher, FW did not start. I did verification readout and found out, every first write after sector erase will not succeed. This is not detected by the script. Readout returned 0xFF at be beginning of each sector. Adding 100 ms sleep after FlashEraseSectors solved the issue for me. Maybe even less is enough.

USB-AURT chip: CH341 with RX/TX LED on dedicated chip pin (not loading RX line)
resistor: 1k8

@pvvx
Copy link
Owner

pvvx commented Jul 13, 2024

This program does not read recorded information, but simply transmits data by controlling the SPI registers on the chip. Reading what is written down requires a lot of extra time.
It is possible to "verify" by specifying the command to read and compare the files.

No program is loaded into the chip. The work is carried out approximately as through JTAG - by externally controlling the registers of the chip with the operation of transferring the address and data to the SPI device. Any single bit failure will result in errors.
For normal programming of the TLSR825x, there are other programmers, rather than emulating the Telink SWire bus on the UART.

@diggit
Copy link
Author

diggit commented Jul 13, 2024

Thanks for the explanation!
I assumed FlashReady at least tells whether Flash is read for write after sector erase.

This tool was the easiest solution to flash the ZigbeeTLc FW into my sensors. Yeah, it is not the fastest (Readout of 1M flash takes around 50 minutes) or the most reliable, but easy one. ZigbeeTLc conversion OTAs do nothing in my case, but that is for issue report on ZigbeeTLc...

Goal of my report was to let you know, some extra delay after FlashEraseSectors may be necessary for successful flashing.

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