Flashing MT7697 from WP UART


#1

Hello all,

We’ve been playing around with the MediaTek MT7697 on a LinkIt evaluation board. We’ve been able to build firmware/apps for it and flash it using this Python tool supplied by MediaTek: https://github.com/MediaTek-Labs/mt76x7-uploader

I spoke briefly with @dfrey about how to update the MT chip in the field and he said MediaTek was not very co-operative since their main tool is closed source. I was pleased to find this script since it automatically puts the MT7697 into “flashing” mode by driving the connected UART high/low using DTR and RTS flow control. Additionally, the tool runs on Python 2.7 on Linux, so running it on the target (WP85 based) seems feasible. The LinkIt evaluation board supplies a UART over USB, and my Linux host computer was able to initialize “flashing” mode using the flow control as seen here: https://github.com/MediaTek-Labs/mt76x7-uploader/blob/7d1f1ae53164170fea4b4943a0287a640f998e6a/upload.py#L62.

Our boards have UART1 from the WP85 connected to a UART (the one that supports flashing) on the MT7697. In theory, if UART1 from the WP85 supports DTR/RTS, this should allow us to update the MT7697 in the field. Does this seem like a fair assessment? I understand this is not how the MangOH Red’s are currently configured, but I believe exploring this topic is valuable since updating the MT7697 is critical for certain use cases.

A final question about the MT7697 setup: It seems the MT7697 is connected to flash memory over SPI on the MangOH Red design. Is this required, or does it simply serve as additional optional memory?

Cheers!


#2

@nick For the flash, if you use the WiFi and Bluetooth stack you need it. If you are just using WiFi, then you dont. In that case, you might as well get the MT7687.

By DTR, you mean CTS? I dont see why you will need the DTR pin and not use CTS. Would be interesting to try out the solution you suggest.


External flash memory for mt7697
#3

Hey @asyal, Nick’s question missed one part - the MT7697f offers a version that has internal flash… Have you guys experimented with the MT7697-f before? If not we’ll just stick with the standard MT7697


#4

we have not tried MT7697-f