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

ST17H66 flashing #12

Closed
webfrank opened this issue Nov 5, 2022 · 13 comments
Closed

ST17H66 flashing #12

webfrank opened this issue Nov 5, 2022 · 13 comments

Comments

@webfrank
Copy link

webfrank commented Nov 5, 2022

Hi, I have a 1$ aliexpress tag but don't understand how to flash openhaystack firmware.

Any help?

@biemster
Copy link
Owner

biemster commented Nov 6, 2022

I indeed did not yet get to writing the documentation for this, could you post a picture of the board? There are three versions of the board that I know of, and they have different points on the PCB where you should connect the RX and TX of your UART to. GND and 3v should have obvious testpads.

  1. UART RX should be connected to pin 6 of the 17h66, TX to pin 5.
  2. Then start the flasher from this repo without connecting 3v to the chip, and when you hear the buzzer ticking do connect the 3v.
  3. That should be all, the flasher should recognize the chip and flash your key in a few seconds.

If the flasher makes the buzzer tick, but does not recognize the chip after powering it up, you might have RX and TX mixed as I had in the beginning (not even sure now if I wrote them correctly here).
Also keep in mind that some usb-uart dongles can't deliver enough power to flash the chip, I have a PL2303 that did not work, but my CP2102 worked.

Hope this helps.

@biemster biemster pinned this issue Nov 6, 2022
@biemster
Copy link
Owner

biemster commented Nov 9, 2022

@webfrank did you manage?

@webfrank
Copy link
Author

Sorry for late reply. I found I have s ST17H26 and not 66. I think it cannot be flashed same way.

@biemster
Copy link
Owner

The 26 is indeed a completely different animal. I have a few of those as well, and am still working on flashing those but I'm not very confident it will work since there are a lot of indications it is OTP only :(
Anyway if it turns out to be flash branded as OTP for marketing reasons, it will still need a completely different flasher as they are likely telink 8266 clones.

@drott
Copy link

drott commented Nov 16, 2022

Looks like I got a batch of ST17H26 ones as well, and then another kind, looking different, labeled like this. Will try with a new order. Looks easier to solder if anything, but I have no idea about the chip.

tag_photo

@biemster
Copy link
Owner

This board I never saw before @drott , interesting! The silkscreen mentions june '22, so I doubt it's a 17h26 since they are superseded by the 66. But I might be wrong.
There is also no SWS pad on the board, but there are Tx and Rx! Did you try to see if they are alive?
Also the value on the oscillator will help identifying this filed down chip.

@johnbaker26222
Copy link

I'm finding that even ordering from my same supplier the identical order, they are shipping with either ST17H66T which aren't flashable or a chip that I suspect is counterfeit. It's missing the ST17H66 and only has the B at the end. Both seem to not be flashable

@isibizi
Copy link

isibizi commented Apr 7, 2024

Damn, i have the ST17H66T chip also in my tags. New news about that?

@Systm21
Copy link

Systm21 commented Apr 8, 2024

I have the same problem here... I got a new delivery of Lenze tags and there are a few with the model number ST17H66T. I haven't tested them yet, but if I go by the available datasheet, they should be easy to program serially via UART.

But what's even weirder is that apart from the "T" models, I have received many more without a laser marking. The PCB layout is actually the same, but there is nothing on the chips. Has anyone had this before? They are completely unlabeled.

@johnbaker26222
Copy link

johnbaker26222 commented Apr 8, 2024 via email

@Systm21
Copy link

Systm21 commented Apr 8, 2024

I haven't tried flashing a T chip yet, but have you noticed that the pinout is different in parts? P10 goes to VBUS, so that can't work.

2024-04-08 22_22_25-Ubuntu 64-bit - VMware Workstation

@johnbaker26222
Copy link

Yes this is what I believe is right?
PXL_20240308_010451729

@Systm21
Copy link

Systm21 commented Apr 9, 2024

The SWS pin is double assigned, I would take one that is only GPIO. I've now started to break it down and where you can tap the signal. The alternative would be to ask Lenze which pins work without problems. The problem is that there are often peripherals connected that could interfere with the signal (LED, piezo etc.). The piezo already does this.

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

6 participants