logo elektroda
logo elektroda
X
logo elektroda

Changing firmware increasingly difficult? Smart Switch on T34 and QFN soldering

p.kaczmarek2  63 4050 Cool? (+12)
📢 Listen (AI):
T34 module in LGA package with fine wires soldered to pads
There are an increasing number of backplane relay modules on the market based on the T34 chip. The T34 is an integrated Wi-Fi chip that is a smaller version of the popular CB2S/CB3S/itd based on the BK7231N core. Although it is still the same chip from the software side, changing its software is more difficult, because in new devices there is no longer a derived serial port and you have to solder this chip in the LGA case off the board. Here I will try to show this process.

Let me remind you of the main topic about the T34: T34 datasheet, pinout, flashing and common mistakes - soldering to QFN pins, smart plug
In that topic, the T34 occurred in a version where you could solder wires to its pads:
Close-up of T34 LGA chip soldered to green PCB circuit board
Here it will be more difficult - access to the pads is not available! This means that we no longer have a "shortcut" and we have to solder the whole T34 off the PCB, and after programming it has to go back in place.

This topic will be special, because I will show it on the example of two relays. This type of gadget can be bought for as little as a dozen zloty, you get a tiny box:
Plastic packaging and cardboard box of Tuya WiFi relay module Box of KAMGA device labeled Intelligent flush-mounted WiFi switch
There is a module and instructions inside:
Wi-Fi Mini Smart Switch with English-language instruction manual Mini Smart Switch with quick start guide and QR code for Smart Life app Wi-Fi relay module and instruction sheet with labeled connectors and specs
Let's take a look inside:
Green PCB with visible traces, terminal block and soldered components. Remote relay module with green terminal block and black JY3FF relay Electronic circuit board with relay and screw terminal block in close-up
Electronic module with relay, capacitors, and screw terminal Close-up of a blue PCB with electronic components and a green screw terminal Electronic module with relay, capacitors, and screw terminal block
There is no access to the pads mentioned in the subject line about T34 catalogue note .
Close-up of T34 Wi-Fi module on PCB with capacitor and SMD components
We'll have something on this in a moment, but the construction of such a module can still be discussed briefly.
Here we have a single relay supplied with 5 V (JY3FF-SH-DC5V-A(K) or similar), a step-down converter providing 5 V from 230 V AC (after rectification), probably on a BP2525, an LDO AMS1117-3.3 providing 3.3 V from 5 V, and a title T34 together with an antenna on the PCB. In addition, some of these modules also support an RF control option thanks to an additional WF480RA IC in the corner of the PCB along with its quartz resonator and antenna.

Programming the T34
The purpose of changing the device's firmware is to free it from the cloud and to pair it conveniently with Home Assistant. Such a device can then also be freely programmed and developed like an Arduino.
We will upload our electrode firmware onto it: https://github.com/openshwprojects/OpenBK7231T_App
Uploading is done via the serial port.
Verification with the datalogue note shows that one of the UART pins needed for programming is not brought out here. You need to apply flux, ideally also protect nearby components with kapton tape and solder the T34 using hot air. The temperature and blow settings depend on the station - I always try to limit the blow, the temperature is not needed too high either. The board is small and has little heat capacity, it's not a big multilayer PCB from a laptop with huge copper spouts.
Electronic module with T34 chip heated by hot air soldering station nozzle
GPIO download:
T34 pinout diagram and photo with UART wires soldered for flashing
After soldering, it can be seen that the TXD1 pad has no path:
Close-up of relay PCB with desoldered T34 Wi-Fi module in LGA package Close-up of a PCB with removed LGA chip and visible QFN pads
This way we have the module soldered out. I necessarily advise against soldering thick wires to it - it is easy for it to tear off the pad, I have already been through this, I broke one circuit myself this way. It is better to make a stand, e.g. from a cardboard box, mark the first pin and then fix the wires to the stand (e.g. with hot glue) and solder to them:
T34 chip mounted on cardboard with thin wires soldered to its sides
You can also buy a QFN breakout board with a compatible number of pins and raster. I didn't have one on hand myself, but my method works too - I even took a souvenir photo while reading the Flash memory:
T34 chip on cardboard with soldered wires, flashing tool software visible on screen
Another copy - another risky method, but again, wires to not break the pads:
Desoldered T34 chip connected to a breadboard with alligator clip wires
We use our flasher and USB to UART converter for programming:
https://github.com/openshwprojects/BK7231GUIFlashTool
The programmer correctly discovers the GPIO configuration:
Screenshot of BK7231 GUI Flash Tool showing extracted T34 GPIO configuration
Then the chip goes back into place:
Relay module with QFN-packaged T34 chip held in hand
I do not reapply binder to such a layout. I just add a bit of flux, not too much, position it and heat it with hot air. With a bit of luck the layout sits and positions itself correctly. Sometimes it needs a little help with tweezers.

Tuya's JSON detected (GPIO configuration):
Code: JSON
Log in, to see the code

Verbal description:

Device seems to be using T34 module, which is BK7231T chip.
- Relay (channel 1) on P26
- WiFi LED on P8
- TglChannelToggle (channel 1) on P23
- Pair/Toggle All Pin on P10

We perform the rest of the configuration as usual.



Pairing with Home Assistant:





Summary
Unlike the previous thread about the T34 , this time the conclusion is different. This device is unlikely to be reprogrammed without using hot air - because how? Does anyone have any ideas? Without the derived pads, I don't see this as a possibility.
All this means that now having such, say, 5 modules, we have to solder the chip in the LGA 5 times, solder the wires to it, program it, and then solder it back in place.... well, at least a bit more people will practice working with SMD components.
Is there any way to make your job easier? There was one suggestion on Elektroda.com:
Pink 3D-printed adapter with pins and desoldered QFN-package T34 chip on a surface
This is a printed adapter for programming the T34 without soldering. It simplifies the second step, as the T34 has to be further soldered and re-soldered from the PCB. Source: https://www.elektroda.com/rtvforum/topic4079733.html#21732349
Interesting concept, although it still requires probably the most difficult step.
How do you rate the level of difficulty of such a firmware change? Have you worked with components in enclosures such as LGA?

About Author
p.kaczmarek2
p.kaczmarek2 wrote 14403 posts with rating 12336 , helped 650 times. Been with us since 2014 year.

Comments

piotr_go 31 Oct 2025 13:08

LGA not QFN. [Read more]

Mastertech 31 Oct 2025 13:37

Well, I don't know. To hook up to ground and plus you will probably find somewhere on the pcb. The question is whether the Rx and Tx go somewhere on the pcb so you can catch them, you need to look closely... [Read more]

p.kaczmarek2 31 Oct 2025 13:58

Precisely the problem is that one of the UART lines is not led anywhere. That's why I gave pictures with the circuit soldered out: https://obrazki.elektroda.pl/2238398900_1761915314_bigthumb.jpg ... [Read more]

chemik_16 31 Oct 2025 15:32

you can file in the circuit/pcb :) or press with a piece of tape [Read more]

piotr_go 31 Oct 2025 16:47

:) Darkest under the torch: https://obrazki.elektroda.pl/7028341800_1761925616_thumb.jpg [Read more]

p.kaczmarek2 31 Oct 2025 17:07

And that's what I saw, but about that I had doubts because I know that T34s come in two versions - with pads accessible from the side and without. Although I guess that document from NXP what I gave a... [Read more]

Mastertech 31 Oct 2025 18:10

Why grind the whole side, just the corner where the pins of interest are, or in fact one particular pin. This will have the advantage that the access will be permanent and you will not have to solder... [Read more]

piotr_go 31 Oct 2025 18:11

"laminated QFN" - as many as 15 links on google :) Since you are describing a problem that occurs in an LGA chassis and does not occur in QFN, it would be appropriate to write LGA. [Read more]

p.kaczmarek2 31 Oct 2025 18:23

I will try this way, but I do not foresee any further programming. That's what the remote update option (OTA) is for, to avoid soldering wires twice. @piotr_go thanks for pointing it out, I have changed... [Read more]

divadiow 01 Nov 2025 07:26

Was there any space under the chip for even the thinnest of needles to reach the IC legs? This method was a pain and you need to keep a steady hand for a short period but I was able to flash with two sewing... [Read more]

p.kaczmarek2 01 Nov 2025 07:34

@divadiow I checked your picture. https://obrazki.elektroda.pl/7717033600_1761978735_bigthumb.jpg It indeed looks like LGA (no pads on right side) but it seems it's solder in such a way that solder... [Read more]

divadiow 01 Nov 2025 07:37

yep, OK. The accessibility of the legs on these T34s do seem to vary somewhat [Read more]

p.kaczmarek2 01 Nov 2025 08:04

Looks like the length of the pad makes the difference [Read more]

Nargo 01 Nov 2025 09:28

https://obrazki.elektroda.pl/9572700600_1761985631_thumb.jpg I have such a switch and am gathering up the courage. [Read more]

Mastertech 01 Nov 2025 11:33

You can easily add cables to it without desoldering the circuit. But placing it in the middle of the pcb doesn't make it any easier. [Read more]

p.kaczmarek2 01 Nov 2025 12:21

Now I'm wondering if the one in @Nargo's photo is a QFN, or is it also an LGA, but only on longer pads? Anyway, what's there is a simple version, also you could probably get away with such a stand with... [Read more]

_johnny_ 04 Nov 2025 09:28

Rest assured that soon no firmware changes in iot will be possible thanks to the EU. Every firmware will have to have a secure boot and on esp32, for example, the key is permanently burned in. Then only... [Read more]

p.kaczmarek2 04 Nov 2025 09:49

At this point we have encountered this in devices from Matter based on ESP32. Several forum users have tested various such devices and it looks like this is some sort of top-down requirement from Matter,... [Read more]

Atgeek25 08 Nov 2025 20:06

I'm trying to flashing it, but I'm getting this error. Anyone knows why? https://obrazki.elektroda.pl/9552952200_1762629657_thumb.jpg [Read more]

FAQ

TL;DR: T34 Wi‑Fi relay modules use BK7231 cores; 796 devices are already cataloged. “Access to the pads is not available,” so first flash often needs hot‑air and LGA handling. [Elektroda, p.kaczmarek2, post #21738061]

Why it matters: This FAQ helps makers decide if and how to flash T34-based relays without ruining pads, and how to pair them with Home Assistant.

Quick Facts

What is the T34 module and why is flashing harder now?

T34 is a compact Wi‑Fi module based on the BK7231T/N core. Many new relay boards place T34 in an LGA package with no accessible side pads. One UART line is often unrouted on the PCB, blocking in‑circuit serial flashing. Initial reprogramming typically requires hot‑air removal, wiring, then reflowing the chip. “Access to the pads is not available!” [Elektroda, p.kaczmarek2, post #21737021]

Is my module LGA or QFN, and does it matter?

It matters. In QFN you may catch the side pads; in LGA the metal lands sit underneath, often with no side access. The thread corrects the naming: these problematic versions are LGA, sometimes described as “laminated QFN.” Expect harder access and plan for chip lift. [Elektroda, piotr_go, post #21737271]

Can I find 3.3 V, GND, RX, and TX somewhere else on the board?

You can locate 3.3 V and GND easily. However, at least one UART pin (TXD1) is not routed on certain boards. Photos show no trace for that pad, so you cannot complete the UART without accessing the package lands directly. [Elektroda, p.kaczmarek2, post #21737307]

How do I flash OpenBeken onto a T34 safely?

Three steps: 1) Hot‑air lift the T34 after masking nearby parts and applying flux. 2) Solder thin leads or use a breakout/fixture; connect USB‑UART and use BK7231 GUI Flash Tool. 3) Reflow the T34 back, align with flux. Avoid thick wires to prevent pad lift. [Elektroda, p.kaczmarek2, post #21737021]

What tools and files do I need to program it?

Use a USB‑to‑UART adapter and the BK7231 GUI Flash Tool. Flash the OpenBeken binary for BK7231T. The tool can auto‑discover GPIO configuration, and the project repository provides firmware and device lists for reference. [Elektroda, p.kaczmarek2, post #21737021]

Can I avoid desoldering—any ‘needle’ or clamp tricks?

Sometimes. If solder joints are slightly exposed around the chip, two fine sewing needles or a printed press‑adapter can touch the UART lands. Success varies by pad length and board design. “The accessibility of the legs on these T34s do seem to vary.” [Elektroda, divadiow, post #21737850]

Is grinding a corner of the package a valid access method?

Yes, carefully filing only the corner with the target pin can create permanent access without full removal. Several users suggest this to expose a single UART pad, reducing future rework. Proceed slowly to avoid damaging internal layers. [Elektroda, Mastertech, post #21737477]

What’s the risk of ripping pads during wiring?

High if you use stiff or heavy wires. The author reports breaking a circuit this way. Secure the module in a small stand, hot‑glue strain‑relieved jumpers, or use a QFN/LGA breakout to protect pads during flashing. [Elektroda, p.kaczmarek2, post #21737021]

How do I configure GPIOs after flashing?

Use the detected Tuya JSON or manual mapping: Relay on P26, Wi‑Fi LED on P8, Toggle on P23, Pair/All on P10. Confirm behavior in OpenBeken, then pair with Home Assistant. A video walkthrough is linked in the thread. [Elektroda, p.kaczmarek2, post #21737021]

What is OpenBeken?

OpenBeken is open firmware for BK7231‑based devices. It replaces cloud dependence, adds local control, and integrates with Home Assistant. The thread links the project repo and device list used by contributors. [Elektroda, p.kaczmarek2, post #21737021]

What is Tuya in this context?

Tuya provides cloud‑connected firmware and JSON GPIO schemas in many IoT devices. Dumped Tuya JSON reveals pin roles, which OpenBeken can replicate for local control without the Tuya cloud. [Elektroda, p.kaczmarek2, post #21737021]

Can I rely on OTA after the first flash?

Yes. After installing OpenBeken once, use OTA updates to avoid lifting the chip again. “That’s what the remote update option (OTA) is for.” [Elektroda, p.kaczmarek2, post #21737495]

How many devices like this are already documented?

The community has described 796 devices. That catalog helps identify pinouts and configurations before opening hardware, saving time and rework. [Elektroda, p.kaczmarek2, post #21738061]

Will future IoT devices block firmware changes?

Some Matter‑based ESP32 devices already ship with secure boot and burned keys, preventing custom firmware. Contributors note this appears to be a top‑down requirement within Matter ecosystems. [Elektroda, p.kaczmarek2, post #21740953]

Edge case: what if my board has UART broken out underneath?

Check for test pads on the PCB bottom. Some versions route UART to hidden pads, enabling flashing without chip removal. If absent, use lift, corner‑file, or a press‑adapter approach. [Elektroda, p.kaczmarek2, post #21738061]

What if the chip sits mid‑PCB with no side access?

It’s harder but still possible. Add fine cables without full removal if any metal is exposed, or use a printed programming adapter to press contacts. Placement increases difficulty, not impossibility. [Elektroda, Mastertech, post #21738014]
Generated by the language model.
%}