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

Cannot flash the new ST17H66T version #10

Open
johnbaker26222 opened this issue Mar 8, 2024 · 14 comments
Open

Cannot flash the new ST17H66T version #10

johnbaker26222 opened this issue Mar 8, 2024 · 14 comments

Comments

@johnbaker26222
Copy link

johnbaker26222 commented Mar 8, 2024

I noticed that the new cheapo trackers from china are now shipping with the ST17H66T version instead of the ST17H66B. I was able to solder to pins 3 and 4 UART (I can't find a pad with this particular layout for pin 3). This is as far as I get into the flash before it hangs:

./flash_st17h66.py <KEY HERE>

RESET MODE activated. Changing baudrate to 115200
Erase + Write
sent b'er512'
Response is: b'#OK>>:'
sent b'rdrev+'
Response is: b'0x00000000 6200CK06 #OK>>:'
sent b'wrreg4000c890 ab000001 '
Response is: b'#OK>>:'
sent b'wrreg4000c838 ff010005 '
Response is: b'#OK>>:'
sent b'spifs 0 1 3 0 '
^CTraceback (most recent call last):
  File "/home/jake/tracker/FindMy/Lenze_ST17H66/./flash_st17h66.py", line 103, in <module>
    time.sleep(0.3)
KeyboardInterrupt

Here is a link to the datasheet for the T version. I am afraid the old B version is going to be harder to find in the future.

PXL_20240308_010451729

@biemster
Copy link
Owner

biemster commented Mar 8, 2024

It is interesting to see that the bootloader is still accepting the first set of commands. Also it hangs at a command that is specific for the type of storage in the chip, which is a major difference between the B and T versions.
Have you tried flashing this board with a recent version of LeKit, one that should support the T?

@johnbaker26222
Copy link
Author

johnbaker26222 commented Mar 8, 2024 via email

@johnbaker26222
Copy link
Author

Screenshot 2024-03-08 083225

@johnbaker26222
Copy link
Author

Do you have a link to the latest lekit flash tool?

@biemster
Copy link
Owner

biemster commented Mar 8, 2024

@biemster
Copy link
Owner

biemster commented Mar 8, 2024

I need to add the key in the hex still as well. Is that pretty straight forward? haven't tried yet.

That is pretty straightforward, just a copy paste in a text editor should be possible. But I'll update the flasher script if this new LeKit works.

@johnbaker26222
Copy link
Author

Screenshot 2024-03-08 090047

@biemster
Copy link
Owner

biemster commented Mar 8, 2024

The log reports successful erase, can you confirm that by trying to switch on the tag?

@johnbaker26222
Copy link
Author

johnbaker26222 commented Mar 8, 2024 via email

@biemster
Copy link
Owner

biemster commented Mar 8, 2024

If the tag still comes on with a blue light it means that the firmware was not erased. This OTP means One Time Programming, so I actually assumed the T is not programmable at all. But your experience with the flasher had me hoping Lenze just rebranded the Flash as OTP for marketing reasons.
This needs further experimenting, and if I would have one of those tags I would start by trying to change the "run address is : OTP" to something not OTP, although it's a long shot.

@johnbaker26222
Copy link
Author

When I click write there is a flash option or OTP option. Neither seem to do much, erase doesn't seem to work either as you said.
I think I'm just going to order some more in a different configuration and hope they still have the B version of the chip I suppose.

@liufuhu
Copy link

liufuhu commented May 26, 2024

I am chinese, and i asked the chip manufacturer. ST17H66T is otp chip, and ST17H66B is flash chip, so ST17H66T cannot flash.

@biemster
Copy link
Owner

Thanks for contacting them @liufuhu ! Pity though that many manufacturers are moving away from the st17h66b

@johnbaker26222
Copy link
Author

johnbaker26222 commented Jun 5, 2024 via email

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

3 participants