z03mmc icon indicating copy to clipboard operation
z03mmc copied to clipboard

How to flash firmware with USB to UART for MJWSD05MMC?

Open weichenw opened this issue 2 years ago • 6 comments

Hi,

I am trying to flash via USB for MJWSD05MMC but have been unsuccessful. Based on the PCB connection diagram, I connected the adapter Txd with 1k ohm to the rxd of MJWSD05MMC. Still no luck. Any pointers?

Thanks Wei

weichenw avatar Nov 02 '23 09:11 weichenw

This firmware doesn't support MJWSD05MMC yet. You need to add screen management and (possibly) define different i2c group for your device. But I suppose the connection should be similar to 03mmc:

  1. GND
  2. 3v3
  3. TX --> 1kOhm -> SWS (near rx on the board)
  4. RX --> SWS directly

MJWSD05MMC_pcb

devbis avatar Nov 02 '23 11:11 devbis

@devbis Thanks.

I tried to connect it as you mentioned and flash the original firmware, but no luck, put the battery in doesn't boot up. I think it's bricked.

image

Thanks again for your help.

weichenw avatar Nov 02 '23 13:11 weichenw

I haven't tried your model but I believe it is impossible to brick tlsr82xx with software manipulation. Use 'ea' command to erase flash and try again with BLE firmware

devbis avatar Nov 02 '23 13:11 devbis

После прошивки Zigbee необходимо использовать выход RESET при запуске «активации» в любом программаторе!

Прошивка Zigbee полностью отключает Flash во время выполнения в режиме глубокого сна и настраивает защиту от записи во Flash. В результате прошить простейшими программаторами без сброса микросхемы с помощью RESET или переподключения питания во время "активации" невозможно.

Сброс питания может не сработать, поскольку чип, находящийся в режиме глубокого сна, получает достаточное питание с любого выхода, включая вывод программирования.

Уточнение

pvvx avatar Nov 02 '23 15:11 pvvx

Thanks, I will give that ago.

weichenw avatar Nov 03 '23 03:11 weichenw

I don't have a separate flasher, but I'm using my Arduino board to read/write UART. I've connected to the pins according to the sketch above (GND, 3.3V, TX to SWS via 1kOHM, RX to SWS).

I'm using https://pvvx.github.io/ATC_MiThermometer/USBCOMFlashTx.html and getting this:

9:43:28 AM: USB-COM opened.
9:43:52 AM: File was selected, size: 524288 bytes
9:44:19 AM: Reset DTR/RTS (100 ms)
9:44:19 AM: Activate (5 sec)...
9:45:20 AM: Write 524288 bytes in to Flash...

When "Activate" appears, I remove the 3.3V supply that I'm feeding from Arduino for 1-2 seconds and plug it back in - but the "Write 524288 bytes in to Flash..." usually appears only a minute or two later (and never ends, I've let it run for 1-2 hours).

Am I missing something? I hope I don't have to go and buy a specific flasher just for this.

MaticSulc avatar Jan 15 '25 08:01 MaticSulc