Stm32H7 and MM6108

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

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.

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

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, which can be included directly into PlatformIO. 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 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 for the H753 hal implementation.

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
"

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

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 (8.6 MB)