# MT7697 functionality

**URL:** <https://mangoh.discourse.group/t/mt7697-functionality/1185>\
**Category:** mangOH Red\
**Created:** [February 20, 2018, 6:43am UTC](https://mangoh.discourse.group/t/mt7697-functionality/1185 "2018-02-20T06:43:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![basti](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@basti](https://mangoh.discourse.group/u/basti)\
**Post date:** [February 20, 2018, 6:43am UTC](https://mangoh.discourse.group/t/mt7697-functionality/1185/1 "2018-02-20T06:43:52Z")

</div>

Hi,

I noticed you had a live demonstration on how to use the Mediatek WiFi on mangOH Red, unfortunately I noticed this too late. Hopefully some information came up that someone could use to help me.

I am trying to get WiFi working on my Red (WP8548). Trying to follow the wiki:

> **[mangOH Red mt7697](https://github.com/mangOH/mangOH/wiki/mangOH-Red-mt7697)**
>
> Primary mangOH git repository. Contribute to mangOH/mangOH development by creating an account on GitHub.

and building the git repo with the SDK gives me:

> Build CM4 Firmware…Done  
> ==============================================================  
> ./build.sh linkit7697\_hdk MT7697\_WiFi\_BT\_fw bl  
> Start Build: Mon Feb 19 15:59:15 EET 2018  
> BOOTLOADER BUILD : PASS  
> End Build: Mon Feb 19 15:59:41 EET 2018  
> TOTAL BUILD: FAIL

I do not know why it says `TOTAL BUILD: FAIL`, cannot find any failed parts of the build. When trying to use MT76x7 flash tool it does not go past “Waiting for COM” when pressing `Start`. Tested, and verified the serialport used is correct.

The flashtool gives me the following errors on the CLI:

> libpng warning: iCCP: known incorrect sRGB profile  
> libpng warning: iCCP: known incorrect sRGB profile

---

<div class="post-metadata">

**Author:** ![basti](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@basti](https://mangoh.discourse.group/u/basti)\
**Post date:** [February 20, 2018, 8:31am UTC](https://mangoh.discourse.group/t/mt7697-functionality/1185/2 "2018-02-20T08:31:18Z")

</div>

Update:  
There was an issue with Linux (Mint 18.3) that was causing issue with the flash tool. Got the chip flashed on Windows 7.

But the only thing I am seeing on console USB output is (not sure if this is normal):

> loader enable 30s timeout  
> loader init  
> fota: TMP is empty, skip upgrade  
> jump to (0x10079000)

Should WiFi now work with wifiService application for example, because I cannot get it working. Thanks again in advance!

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [February 20, 2018, 3:19pm UTC](https://mangoh.discourse.group/t/mt7697-functionality/1185/3 "2018-02-20T15:19:08Z")

</div>

It should print more than that in the console. Above it says “TOTAL BUILD: FAIL”. Did you resolve the build failure? Look at `out/linkit7697_hdk/MT7697_WiFi_BT_fw/log/err.log`

---

<div class="post-metadata">

**Author:** ![basti](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@basti](https://mangoh.discourse.group/u/basti)\
**Post date:** [February 21, 2018, 6:37am UTC](https://mangoh.discourse.group/t/mt7697-functionality/1185/4 "2018-02-21T06:37:15Z")

</div>

Hi @dfrey,

Ah of course. I tried looking through the error log to see if there was something I recognized, something is definitely wrong but I cannot pinpoint what. The errorlog is attached here: [err.log](https://mangoh.discourse.group/uploads/short-url/ze5oKofvgJXXuFRwB0XcJFlFuS9.log) (8.7 KB)

Maybe you have seen similar errors before?

---

<div class="post-metadata">

**Author:** ![AE\_1](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@AE\_1](https://mangoh.discourse.group/u/AE_1)\
**Post date:** [July 24, 2018, 2:25pm UTC](https://mangoh.discourse.group/t/mt7697-functionality/1185/5 "2018-07-24T14:25:37Z")

</div>

Hallo,

I followed the steps motioned here [https://github.com/mangOH/mangOH/wiki/mangOH-Red-mt7697-WiFi](https://github.com/mangOH/mangOH/wiki/mangOH-Red-mt7697-WiFi).  
But I was not able to build the project. I get

==============================================================  
./build.sh linkit7697\_hdk MT7697\_WiFi\_BT\_fw bl  
Start Build: Di 24. Jul 15:55:14 CEST 2018  
BOOTLOADER BUILD : PASS  
End Build: Di 24. Jul 15:55:42 CEST 2018  
TOTAL BUILD: FAIL

err.log:

:0:0: note: this is the location of the previous definition  
arm-none-eabi-gcc: error: …/…/…/…/…/out/linkit7697\_hdk/MT7697\_WiFi\_BT\_fw/obj/middleware/third\_party/lwip/ports/ethernetif.o: No such file or directory  
arm-none-eabi-gcc: error: …/…/…/…/…/out/linkit7697\_hdk/MT7697\_WiFi\_BT\_fw/obj/kernel/rtos/FreeRTOS/Source/portable/GCC/ARM\_CM4F/port.o: No such file or directory  
make: \*\*\* [/home/ae/Dokumente/MT7697/out/linkit7697\_hdk/MT7697\_WiFi\_BT\_fw/MT7697\_WiFi\_BT\_fw.elf] Fehler 1

How can I solve that?

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [July 24, 2018, 6:07pm UTC](https://mangoh.discourse.group/t/mt7697-functionality/1185/6 "2018-07-24T18:07:47Z")

</div>

Are you building against the LinkIT 4.3.0 SDK? Note that 4.3.0 is _not_ the latest version.

---

<div class="post-metadata">

**Author:** ![AE\_1](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@AE\_1](https://mangoh.discourse.group/u/AE_1)\
**Post date:** [July 26, 2018, 3:27pm UTC](https://mangoh.discourse.group/t/mt7697-functionality/1185/7 "2018-07-26T15:27:50Z")

</div>

Hi dfrey,

thanks for your info. It was my mistake. I used the LinkIT version 4.6.1 instead of 3.4.0.  
Now the build works well.
