>>21619354 
Thanks for that quick reply.
Just to be sure I flashed a few more devices that I had with the same PCB and managed to successfully configure them.
I reflashed the original unit using higher baud rate of 230400. Flashing becomes successful but it does not open up the WiFi AP. The WiFi LED get lit up after a while and then stays litup.
I wonder whats wrong there.
Other units which could be successfully flashed are of the same type.
BTW the config file should be as follows:
Note that I had to swap channels 1 & 3 from the original Tuya Config to get the proper button orientation on the GUI.
The working config 
Device configuration, as extracted from Tuya: 
- WiFi LED on P7
- Button (channel 1) on P8
- Relay (channel 3) on P9
- Button (channel 2) on P14
- Relay (channel 2) on P15
- Button (channel 3) on P16
- Relay (channel 1) on P17
- Pair/Toggle All Button on P24
Device seems to be using T34-3 module.
And the Tuya section starts, as usual, at 2023424
Thought of sharing my new setup for flashing here as well so that others also can get some inspiration.
Some time back I ordered these probles/needles from Aliexpress.
https://www.aliexpress.com/item/1005007471008008.html
Those are essentially some metal rods with pogo pins at one end and a female jumper wire headers at the other end.
So I created a small setup like this:
 
 
 
I was hoping to get a nice stand made with acrylic sheets later but for the time being this works.
The vertical probes rest on the solder pads/pins using their weight and the pogo needle points.
 
 
 
It takes some skill in accurately positioning the needle points of the pogo pins.
For Power I used a 1.27mm female pin header to directly connect to the pin header on the PCB so that no soldering is required.
I managed to flash a bunch of T34 devices quickly today using this setup (one device has some issue though).
 
Added after 25 [minutes]:
Hoping to recover the failed unit I tried flashing the backup file back into the device.
I am getting the following error. 
All selected sectors erased!
CheckRespond_FlashWrite4K: bad value returned?
Writing sector 0x11000... Writing sector 69632 failed!
Writing file data to chip failed.
Does anybody know what this means?