# Rationale for M4 insted of M0

**URL:** <https://mangoh.discourse.group/t/rationale-for-m4-insted-of-m0/371>\
**Category:** mangOH Red\
**Created:** [February 10, 2017, 5:15pm UTC](https://mangoh.discourse.group/t/rationale-for-m4-insted-of-m0/371 "2017-02-10T17:15:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![N1cl3d](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/n1cl3d/32/750_2.png) [@N1cl3d](https://mangoh.discourse.group/u/N1cl3d)\
**Post date:** [February 10, 2017, 5:15pm UTC](https://mangoh.discourse.group/t/rationale-for-m4-insted-of-m0/371/1 "2017-02-10T17:15:56Z")

</div>

Hello I would have thoughrt that Mangoh réf would be even more frugal with an M0 CORTEX. What made you chose an M4 ?

---

<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 10, 2017, 5:48pm UTC](https://mangoh.discourse.group/t/rationale-for-m4-insted-of-m0/371/2 "2017-02-10T17:48:28Z")

</div>

The cortex m4 is a 3rd party solution that provides WiFi and Bluetooth functions. So it can run user code, but it has other tasks to perform as well.

---

<div class="post-metadata">

**Author:** ![N1cl3d](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/n1cl3d/32/750_2.png) [@N1cl3d](https://mangoh.discourse.group/u/N1cl3d)\
**Post date:** [February 10, 2017, 7:53pm UTC](https://mangoh.discourse.group/t/rationale-for-m4-insted-of-m0/371/3 "2017-02-10T19:53:08Z")

</div>

Thank you. i understanding that. And I Guess an M0 could also do this job  
nicely and yet draw less energy I assume, wouldn’t it ?

Si I guess there are some other things un balance.

---

<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:** [February 10, 2017, 9:01pm UTC](https://mangoh.discourse.group/t/rationale-for-m4-insted-of-m0/371/4 "2017-02-10T21:01:09Z")

</div>

Depends on the architecture you have in mind and the power modes.  
In our case, we support two use cases:  
a. WP module as master controlling the platform including the Mediatek MT7697. Note this part has WiFi/BT and the cortex M4. You can do real time I/O control on the cortex M4. WP itself can shut down the rest of the sytem. WP has a small cortex M0 built into but that part is not user programmable. Note that power consumption of the system can do down to 6ua (with mod) to 50ua(native) in lower power mode.  
In summary, thiis is a powerful linux system with built in M0 for power optimization. the M4 is more for real time I/O capabilities as well WiFi/BT.  
mangOH Red power optimization is done for the WP use case.

b. HL mode: MT7697 controls the HL module. The platform is not power optimized for this use case.

---

<div class="post-metadata">

**Author:** ![N1cl3d](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/n1cl3d/32/750_2.png) [@N1cl3d](https://mangoh.discourse.group/u/N1cl3d)\
**Post date:** [February 21, 2017, 1:07pm UTC](https://mangoh.discourse.group/t/rationale-for-m4-insted-of-m0/371/5 "2017-02-21T13:07:41Z")

</div>

thks Asyal for those explanations (sorry for not responding earlier !).  
do you know when the RED will be available now ?

---

<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:** [February 22, 2017, 12:39am UTC](https://mangoh.discourse.group/t/rationale-for-m4-insted-of-m0/371/6 "2017-02-22T00:39:27Z")

</div>

We are working for delivery by our Innovation Summit in Paris. late May to early June.

---

<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:** [June 30, 2017, 11:23am UTC](https://mangoh.discourse.group/t/rationale-for-m4-insted-of-m0/371/11 "2017-06-30T11:23:53Z")

</div>

Hello Asyal

MangoRed has a CortexM4 but in your answe you say this is inside WIFI/BT module and WP is the master. it´s our WP that´s switch ON/OFF mediteck module.

I wan CortexM to power on/off WP85 to optimize power consumption.

You say there´s a CortexM0 inside WP to do this. Where is the documentation to use this CortexM0 inside WP to swicth on/of wp85?

Thanks

isabel

---

<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:** [June 30, 2017, 3:02pm UTC](https://mangoh.discourse.group/t/rationale-for-m4-insted-of-m0/371/12 "2017-06-30T15:02:17Z")

</div>

Hi Isabel,

The M0 inside the WP85 isn’t directly user-programmable. You can however request wakeup based on these conditions:

- Edge transition on specific GPIOs
- Timer
- ADC reading going outside specified bounds.

You can see the APIs here:

- [http://legato.io/legato-docs/latest/le\_\_ulpm\_\_interface\_8h.html](http://legato.io/legato-docs/latest/le __ulpm__ interface_8h.html)
- [http://legato.io/legato-docs/latest/le\_\_boot\_reason\_\_interface\_8h.html](http://legato.io/legato-docs/latest/le __boot_reason__ interface_8h.html)

---

<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 9, 2017, 10:18pm UTC](https://mangoh.discourse.group/t/rationale-for-m4-insted-of-m0/371/13 "2017-07-09T22:18:01Z")

</div>

Hi ,  
where can i get full specs of using the MT7697 M4 to program our application into it and customise the firmware in the M4 ?  
Also, Is there any power analysis or optimization documentation ?  
thanks,  
Adrian
