Skip to content
This repository was archived by the owner on Jul 21, 2026. It is now read-only.

Commit 96d9bf4

Browse files
Morse Micromorse-cmistry
authored andcommitted
Morse Micro MM-IoT-SDK 2.10.4 port for ESP-IDF
This commit introduces version 2.10.4 of the ESP32 port of the Morse Micro MM-IoT-SDK. See the included documentation for the usage guide.
1 parent fd56566 commit 96d9bf4

1,198 files changed

Lines changed: 693190 additions & 6003 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

LICENSES/GPL-3.0-or-later.txt

Lines changed: 232 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Users who wish to license this software under the Morse Micro free commercial license
2+
must sign a copy at www.morsemicro.com.

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,28 @@ idf.py menuconfig
5555
### Morse Micro Shim Configuration
5656
The configuration options are located in `(Top) → Component config → Morse Micro Shim Configuration`
5757

58-
This components allows you to configure:
58+
The items that will need to be configured are:
59+
5960
- The pins used to communicate with the Morse Micro chip
60-
- Board Configuration File (BCF) to link against
61+
- Board Configuration File (BCF) to use
62+
- Morse Micro Chip Firmware (FW) file to use
63+
- Chip type to use
6164

6265
#### Board Configuration File
6366
The Board Configuration File (BCF) is a configuration file for the Morse Micro chip that provides
6467
board-specific information and is required for the system to function properly. BCFs for Morse Micro
6568
modules are included in the MM-IoT-SDK package. These modules can be identified by the part numbers
6669
printed on their labels, which take the form MM6108-MFxxxxxx.
6770

71+
#### MM8108 configuration
72+
By default the driver will be configured for a MM6108 chip. The following parameters will need to be
73+
adjusted to be able to communicate with a MM8108 chip (along with appropriate pinout changes).
74+
75+
```
76+
CONFIG_MM_BCF_FILE="bcf_mf15457.mbin"
77+
CONFIG_MM_FW_FILE="mm8108b2-rl.mbin"
78+
CONFIG_MMHAL_CHIP_TYPE_MM8108=y
79+
```
6880

6981
## Build and Run Porting Assistant Test Application
7082

VERSION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
MM-IOT-SDK version 2.9.7-esp32
1+
MM-IOT-SDK version 2.10.4-esp32

examples/ap_mode/CMakeLists.txt

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Copyright 2023-2025 Morse Micro
2+
# SPDX-License-Identifier: Apache-2.0
3+
#
4+
# The following lines of boilerplate have to be in your project's
5+
# CMakeLists in this exact order for cmake to work correctly
6+
cmake_minimum_required(VERSION 3.16)
7+
8+
if(NOT DEFINED ENV{MMIOT_ROOT})
9+
message(FATAL_ERROR "MMIOT_ROOT environment variable not defined. Please set as the path to the framework directory in the MM-IoT-SDK")
10+
endif()
11+
12+
message(STATUS "MMIOT_ROOT: $ENV{MMIOT_ROOT}")
13+
14+
# Workaround to allow us to use the link status callback in LWIP. ESP-IDF releases prior to v6.1 do
15+
# not expose this option from the lwip (esp-lwip) component. In v6.1 and later this can now be set
16+
# using a KConfig variable.
17+
# https://github.com/espressif/esp-idf/commit/16b02aeb7a805de671ca92c0c7630eda091794ce
18+
if ((IDF_VERSION_MAJOR VERSION_LESS 6) OR
19+
(IDF_VERSION_MAJOR EQUAL 6 AND IDF_VERSION_MINOR LESS_EQUAL 0))
20+
add_compile_definitions(LWIP_NETIF_LINK_CALLBACK=1)
21+
endif()
22+
23+
if(DEFINED COUNTRY_CODE)
24+
message (Using country code: ${COUNTRY_CODE})
25+
add_compile_definitions(COUNTRY_CODE="${COUNTRY_CODE}")
26+
endif()
27+
28+
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
29+
project(ap_mode)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Copyright 2025 Morse Micro
2+
# SPDX-License-Identifier: Apache-2.0
3+
set(src
4+
"src/ap_mode.c")
5+
6+
set(inc
7+
"src")
8+
9+
idf_component_register(SRCS ${src}
10+
INCLUDE_DIRS ${inc}
11+
PRIV_REQUIRES morselib mm_shims mmipal mmiperf lwip mmregdb)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2023-2025 Morse Micro
2+
# SPDX-License-Identifier: Apache-2.0
3+
dependencies:
4+
mmutils:
5+
path: $MMIOT_ROOT/framework/src/mmutils
6+
morselib:
7+
path: $MMIOT_ROOT/framework/morselib
8+
mm_shims:
9+
path: $MMIOT_ROOT/framework/mm_shims
10+
mmipal:
11+
path: $MMIOT_ROOT/framework/src/mmipal
12+
mmiperf:
13+
path: $MMIOT_ROOT/framework/src/mmiperf
14+
mmregdb:
15+
path: $MMIOT_ROOT/framework/src/mmregdb

0 commit comments

Comments
 (0)