# Stm32H7 and MM6108

**URL:** <https://community.morsemicro.com/t/stm32h7-and-mm6108/470>\
**Category:** General\
**Created:** [April 10, 2025, 6:16am UTC](https://community.morsemicro.com/t/stm32h7-and-mm6108/470 "2025-04-10T06:16:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yigitkilicli](https://avatars.discourse-cdn.com/v4/letter/y/74df32/32.png) [@yigitkilicli](https://community.morsemicro.com/u/yigitkilicli)\
**Post date:** [April 10, 2025, 6:16am UTC](https://community.morsemicro.com/t/stm32h7-and-mm6108/470/1 "2025-04-10T06:16:30Z")

</div>

Hello everyone, I am trying to use this product with stm32h753 but I am having problems with the sdk section, does anyone know how to solve it? My rtos settings are on cmsis v2 and heap4

 ![1](https://us1.discourse-cdn.com/flex001/uploads/morsemicro/original/1X/40407d226b334fd5ca639f87e7fd43e451b92432.png)

---

<div class="post-metadata">

**Author:** ![yigitkilicli](https://avatars.discourse-cdn.com/v4/letter/y/74df32/32.png) [@yigitkilicli](https://community.morsemicro.com/u/yigitkilicli)\
**Post date:** [April 9, 2025, 4:30pm UTC](https://community.morsemicro.com/t/stm32h7-and-mm6108/470/2 "2025-04-09T16:30:12Z")

</div>

Hı, I am trying to interface MM6108 with stm32H753. I am using stm32cubeide and yor MMIOT sdk version 1.5.0 However I couldnt find how to define pins for spi connections between mm6108 and uC . I would appreciate any help.

---

<div class="post-metadata">

**Author:** ![ajudge](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@ajudge](https://community.morsemicro.com/u/ajudge)\
**Post date:** [April 10, 2025, 9:44am UTC](https://community.morsemicro.com/t/stm32h7-and-mm6108/470/3 "2025-04-10T09:44:17Z")

</div>

It looks like these dependencies are failing because the FreeRTOS Virtual Package included with the H753 has a dependency on an API class which doesn’t appear to exist to the STM32Cube package manager. See image

 ![image](https://us1.discourse-cdn.com/flex001/uploads/morsemicro/original/1X/ea33ae5b6b3545996cbca03c30de41755b7112d3.png)

However, more problematic for you. At this stage, the Morse Micro CMSIS pack does not include support for the Cortex-M7 microcontrollers, as it only deploys the Morse Micro driver library for Cortex-M33. It is on our list of things to add!

You might want to consider using the [mm-iot-sdk](https://github.com/MorseMicro/mm-iot-sdk/), which can be included directly into [PlatformIO](https://platformio.org/). Though this is a different build system.

If you have to use STM32Cube. Ignore the warning for now and proceed with generating your project. Though you will need to include the[Cortex-M7 compiled morselib](https://github.com/MorseMicro/mm-iot-sdk/blob/2.6.4/framework/morselib/lib/arm-cortex-m7f/libmorse.a) manually.

* * *

For this version of the pack, the pinouts need to be mapped in the project source. We do this by adding a `#define` for the relevant SPI peripheral in the `USER CODE BEGIN` section of `main.h`, and then referencing it in the HAL implementation for the platform. We provide HAL implementations for the EKH05 in the CMSIS pack, and some nucleo boards in the mm-iot-sdk. See [mm-iot-sdk/framework/src/platforms/mm-ekh08-h753/mm\_shims/wlan\_hal.c at 2.6.4 · MorseMicro/mm-iot-sdk · GitHub](https://github.com/MorseMicro/mm-iot-sdk/blob/2.6.4/framework/src/platforms/mm-ekh08-h753/mm_shims/wlan_hal.c) for the H753 hal implementation.

---

<div class="post-metadata">

**Author:** ![yigitkilicli](https://avatars.discourse-cdn.com/v4/letter/y/74df32/32.png) [@yigitkilicli](https://community.morsemicro.com/u/yigitkilicli)\
**Post date:** [April 10, 2025, 2:08pm UTC](https://community.morsemicro.com/t/stm32h7-and-mm6108/470/4 "2025-04-10T14:08:44Z")

</div>

First of all, thank you. I want to make a mqtt demo, but I get errors when adding various libs. I don’t understand what is meant by config file here. Also, do you have an example that I can make a mqtt demo in stm32? There are .c codes for mqtt in the example folder.

Also my platform .ini file looks like this "[env:nucleo\_h753zi]  
platform = ststm32  
board = nucleo\_h753zi  
framework = stm32cube  
lib\_extra\_dirs = lib  
build\_flags =  
-Ilib/mm-iot-sdk/examples/mqttdemo/src  
-Ilib/mm-iot-sdk/framework/morselib/include  
-Ilib/mm-iot-sdk/framework/morselib  
-Ilib/mm-iot-sdk/framework/morsemiddleware/include  
-Ilib/mm-iot-sdk/framework/morsemiddleware  
-Ilib/mm-iot-sdk/framework/src  
-Ilib/mm-iot-sdk/framework/src/mmconfig  
-Ilib/mm-iot-sdk/framework/src/mmipal  
-Ilib/mm-iot-sdk/framework/src/include  
-Ilib/mm-iot-sdk/framework/src/stack  
-Ilib/mm-iot-sdk/framework/src/mbedtls/include/mbedtls  
-Ilib/mm-iot-sdk/examples/mqttdemo  
-Ilib/mm-iot-sdk/examples/mqttdemo/src  
-Ilib/mm-iot-sdk/framework/src/mbedtls/include  
-Ilib/mm-iot-sdk/framework/src/freertos-libs/coreMQTT/source/include  
-Ilib/mm-iot-sdk/framework/src/freertos-libs/common/include  
-Ilib/mm-iot-sdk/framework/src/platforms/mm-ekh08-h753/mm\_shims  
-Ilib/mm-iot-sdk/apps/common/include  
-Ilib/mm-iot-sdk/framework/3rdparty/mbedtls/include  
-Ilib/mm-iot-sdk/apps/common  
-DUSE\_FREERTOS  
-DMM\_CONFIG\_MODE\_STANDALONE  
-DMQTT\_DO\_NOT\_USE\_CUSTOM\_CONFIG  
-DMM\_IPV4\_ENABLED=1  
-DMM\_IPV6\_ENABLED=0  
-DMM\_IP\_STACK\_LWIP  
upload\_protocol = stlink  
"

 ![image](https://us1.discourse-cdn.com/flex001/uploads/morsemicro/original/1X/80995866e83e53011d8b1a6bb90c155df30e18bb.png)

---

<div class="post-metadata">

**Author:** ![ajudge](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@ajudge](https://community.morsemicro.com/u/ajudge)\
**Post date:** [April 11, 2025, 12:25pm UTC](https://community.morsemicro.com/t/stm32h7-and-mm6108/470/5 "2025-04-11T12:25:40Z")

</div>

We do have an example for MQTT, and you will find it simpler to compile it by adding mm-iot-sdk as a “platform” to platform io.

Download the mm-iot-sdk as a zip file from GitHub, you can get that directly from this URL: [https://github.com/MorseMicro/mm-iot-sdk/archive/refs/tags/2.7.2.zip](https://github.com/MorseMicro/mm-iot-sdk/archive/refs/tags/2.7.2.zip)

Then, have a read of the following guide. One of the examples provided is `aws_iot`, which is an MQTT example.  
[UG Platform IO + MM IoT SDK - User Guide - v1 (ext).pdf](https://community.morsemicro.com/uploads/short-url/yPCKFt5ndLjzxSHF4RqY9uJArAm.pdf) (8.6 MB)
