# Cortex M4 RTOS functionality

**URL:** <https://mangoh.discourse.group/t/cortex-m4-rtos-functionality/283>\
**Category:** mangOH Red\
**Created:** [November 15, 2016, 6:45pm UTC](https://mangoh.discourse.group/t/cortex-m4-rtos-functionality/283 "2016-11-15T18:45:33Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Isabel](https://avatars.discourse-cdn.com/v4/letter/i/977dab/32.png) [@Isabel](https://mangoh.discourse.group/u/Isabel)\
**Post date:** [November 15, 2016, 6:45pm UTC](https://mangoh.discourse.group/t/cortex-m4-rtos-functionality/283/1 "2016-11-15T18:45:33Z")

</div>

Hello

Is the Cortex M4 inside WP module or is it populated in Mango Red board?  
Cortex A4 fuctionality will be, battery life allowig power on/off WP, HW watchdog and RTOS.  
Will there be source code samples in Eclipse showing these functionalities?

How will be programming the Cortex A4?

Thanks

Isabel

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [November 17, 2016, 4:10am UTC](https://mangoh.discourse.group/t/cortex-m4-rtos-functionality/283/2 "2016-11-17T04:10:12Z")

</div>

Hi ,

Cortex M4 is on the MTK WiFi/BT chipset and available for user processing.  
Cortex M4 usage is open to end customers to decide how they want to use. We will be releasing more information on the architecture in early January.  
Schematics and PCB will be available by Dec 6th online. Note that final production version will go through some changes compared to what we release in Dec.

cheers,  
Ashish

---

<div class="post-metadata">

**Author:** ![Isabel](https://avatars.discourse-cdn.com/v4/letter/i/977dab/32.png) [@Isabel](https://mangoh.discourse.group/u/Isabel)\
**Post date:** [March 18, 2017, 7:02pm UTC](https://mangoh.discourse.group/t/cortex-m4-rtos-functionality/283/3 "2017-03-18T19:02:54Z")

</div>

Hello Asyal

Is the information and schematics of Mango Red ready? When the board will be ready to buy?

Presentations of December CA developper day are not available. Where can I download them?

[https://www.sierrawireless.com/developerday/](https://www.sierrawireless.com/developerday/)

Thanks

Isabel

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [March 18, 2017, 10:44pm UTC](https://mangoh.discourse.group/t/cortex-m4-rtos-functionality/283/4 "2017-03-18T22:44:10Z")

</div>

Hello Isabel,

We are receiving the first batch of final hardware end of next month, with mass production due in early June.  
This would means units should be available by mid July at the distributor warehouses.

Regards,  
Ashish

---

<div class="post-metadata">

**Author:** ![Isabel](https://avatars.discourse-cdn.com/v4/letter/i/977dab/32.png) [@Isabel](https://mangoh.discourse.group/u/Isabel)\
**Post date:** [March 21, 2017, 9:12am UTC](https://mangoh.discourse.group/t/cortex-m4-rtos-functionality/283/5 "2017-03-21T09:12:32Z")

</div>

Thank you Ashish

Do you have scehmatics avalable? What is the MTK WiFi/BT reference used in Mango Red?

Isabel

---

<div class="post-metadata">

**Author:** ![awneil](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/awneil/32/486_2.png) [@awneil](https://mangoh.discourse.group/u/awneil)\
**Post date:** [March 21, 2017, 11:47pm UTC](https://mangoh.discourse.group/t/cortex-m4-rtos-functionality/283/6 "2017-03-21T23:47:12Z")

</div>

The schematics are now available - see: [MangOH Red release?](http://mangoh.discourse.group/t/mangoh-red-release/263/9)

The MediaTek WiFi+BT chip is MT7697D:  
[https://www.mediatek.com/products/smartHome/mt7697d](https://www.mediatek.com/products/smartHome/mt7697d)

> **[MT7697 Smart Home Chipset | MediaTek Labs](https://labs.mediatek.com/en/chipset/MT7697)**
>
> MediaTek MT7697/MT7697D is highly integrated single chip which features an application processor, a low power 1x1 11n single-band Wi-Fi subsystem, a Bluetooth subsystem, and a PMU.

  
Datasheet: [https://labs.mediatek.com/en/download/2AnAcANv](https://labs.mediatek.com/en/download/2AnAcANv)

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [March 22, 2017, 12:03am UTC](https://mangoh.discourse.group/t/cortex-m4-rtos-functionality/283/7 "2017-03-22T00:03:39Z")

</div>

Hi Andy/Isabel,

There has been a few updates to the schematic since then. I will post the latest & final version in couple weeks time frame.  
Note that we are using MT7697 and not MT7697D.

Regards,  
Ashish

---

<div class="post-metadata">

**Author:** ![awneil](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/awneil/32/486_2.png) [@awneil](https://mangoh.discourse.group/u/awneil)\
**Post date:** [March 22, 2017, 7:36am UTC](https://mangoh.discourse.group/t/cortex-m4-rtos-functionality/283/8 "2017-03-22T07:36:19Z")

</div>

OK - thanks.

[https://labs.mediatek.com/en/download/njdlGO4b](https://labs.mediatek.com/en/download/njdlGO4b)

Is that a change, then?  
The DV3 (10 Jan) schematics say, “MT7697IDN” (although that order code isn’t listed in either the MT7697 or the MT7697D datasheet)

From the MediaTek website:

> **MT7697D key features**  
> The difference between MT7697 and MT7697D is that, MT7697D supports additional features below:  
> IEEE 802.11 a  
> 5GHz band  
> Dual-band 1T1R

So I guess the ‘D’ is for “Dual-band” … ?

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [March 23, 2017, 12:51am UTC](https://mangoh.discourse.group/t/cortex-m4-rtos-functionality/283/9 "2017-03-23T00:51:19Z")

</div>

Yes, there is a change.  
As mentioned on the thread it was not the final schematic.  
We plan to officially launch July 7th( world mango day) on multiple distributors world wide . Schematics and all material will be provided before the launch.

---

<div class="post-metadata">

**Author:** ![awneil](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/awneil/32/486_2.png) [@awneil](https://mangoh.discourse.group/u/awneil)\
**Post date:** [March 23, 2017, 8:35am UTC](https://mangoh.discourse.group/t/cortex-m4-rtos-functionality/283/10 "2017-03-23T08:35:43Z")

</div>

Indeed - cheers.

Andy.

---

<div class="post-metadata">

**Author:** ![awneil](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/awneil/32/486_2.png) [@awneil](https://mangoh.discourse.group/u/awneil)\
**Post date:** [March 24, 2017, 2:08pm UTC](https://mangoh.discourse.group/t/cortex-m4-rtos-functionality/283/11 "2017-03-24T14:08:24Z")

</div>

> [@asyal](#):
>
> Hi Andy/Isabel,
> 
> Note that we are using MT7697 and not MT7697D.

So that’s the single-band version; not dual band?

Which raises this question: [mangOH Red WiFi - single or dual band?](http://mangoh.discourse.group/t/mangoh-red-wifi-single-or-dual-band/454)

---

<div class="post-metadata">

**Author:** ![aburns](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@aburns](https://mangoh.discourse.group/u/aburns)\
**Post date:** [July 10, 2017, 8:59pm UTC](https://mangoh.discourse.group/t/cortex-m4-rtos-functionality/283/12 "2017-07-10T20:59:32Z")

</div>

hi,  
RTOS in MT7697 is FreeRTOS?  
there is also plans for the RTOS in the WP module itself?  
thanks

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [July 11, 2017, 3:45am UTC](https://mangoh.discourse.group/t/cortex-m4-rtos-functionality/283/13 "2017-07-11T03:45:51Z")

</div>

MT7679 RTOS is FreeRTOS.  
WP85,75 do not have FreeRTOS .

---

<div class="post-metadata">

**Author:** ![aburns](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@aburns](https://mangoh.discourse.group/u/aburns)\
**Post date:** [July 23, 2017, 10:10pm UTC](https://mangoh.discourse.group/t/cortex-m4-rtos-functionality/283/14 "2017-07-23T22:10:18Z")

</div>

thanks for confirming, i believe there is plans for an RTOS in the modules themselves (as announced at Innovation Summit) but if you cant share dates yet then thats ok

---

<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, 2017, 3:39pm UTC](https://mangoh.discourse.group/t/cortex-m4-rtos-functionality/283/15 "2017-07-24T15:39:39Z")

</div>

Just to clarify…

The MT7697 chip included in the mangOH Red has reference software which is based on FreeRTOS and the LinkIt SDK. We are working on a specific firmware build that will enable WiFi access to the WP module. It is also be possible to run user code on the MT7697 chip, but we haven’t documented that use case yet. If you’re curious, you can check out the documentation provided by MediaTek in their [SDK](https://docs.labs.mediatek.com/resource/mt7687-mt7697/en/downloads)

---

<div class="post-metadata">

**Author:** ![aburns](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@aburns](https://mangoh.discourse.group/u/aburns)\
**Post date:** [July 24, 2017, 4:58pm UTC](https://mangoh.discourse.group/t/cortex-m4-rtos-functionality/283/16 "2017-07-24T16:58:49Z")

</div>

thanks David,  
so the user firmware will go onto the MT7697 chip and will expose an interface to the WP module of the wifi chip on the MT7697? So the WP code can turn MT7697 wifi on and off etc? am i getting that right

---

<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, 2017, 5:11pm UTC](https://mangoh.discourse.group/t/cortex-m4-rtos-functionality/283/17 "2017-07-24T17:11:58Z")

</div>

The wifi capabilities of the MT7697 will be exposed over a SPI interface so that the WP module can use the wifi just like any other wifi device in linux. I hope that it will also be possible to write realtime code for the MT7697 and exchange information with the WP over the SPI interface. The design is done and the implementation is underway, but there is no documentation yet.

---

<div class="post-metadata">

**Author:** ![luigitondo](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/luigitondo/32/498_2.png) [@luigitondo](https://mangoh.discourse.group/u/luigitondo)\
**Post date:** [October 31, 2017, 10:20am UTC](https://mangoh.discourse.group/t/cortex-m4-rtos-functionality/283/18 "2017-10-31T10:20:40Z")

</div>

Hi all,

do we have now more documentation on how the end user can program the Cortex M4/FreeRTOS on MT7697 on the Mangoh Red?

It would also be nice to have some code examples or even simple application use cases where the Cortex M4 is used on the Mangoh Red board to complement the application core on the WP.

BR  
Luigi

---

<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:** [October 31, 2017, 4:40pm UTC](https://mangoh.discourse.group/t/cortex-m4-rtos-functionality/283/19 "2017-10-31T16:40:03Z")

</div>

I wrote this short wiki page a while back. This is all that exists for now [https://github.com/mangOH/mangOH/wiki/mangOH-Red-mt7697](https://github.com/mangOH/mangOH/wiki/mangOH-Red-mt7697)

This page shows what is available in the MediaTek SDK: [http://labs.mediatek.com/api/mt7697/](http://labs.mediatek.com/api/mt7697/)

There are docs on the FreeRTOS site as well: [http://www.freertos.org/a00106.html](http://www.freertos.org/a00106.html)  
You have to be a bit careful because the bundled FreeRTOS is a bit older than the 9.0 version that is documented on the freertos site.

---

<div class="post-metadata">

**Author:** ![asifarshad](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@asifarshad](https://mangoh.discourse.group/u/asifarshad)\
**Post date:** [April 18, 2019, 7:53am UTC](https://mangoh.discourse.group/t/cortex-m4-rtos-functionality/283/20 "2019-04-18T07:53:42Z")

</div>

Can I use the Wifi using SPI?
