We are planning to migrate our existing firmware from STM32U585VITxQ to STM32F407VGTx and require guidance specifically for code migration. The current application is fully developed and functional on the STM32U5 platform, and our objective is to port the same codebase to the STM32F4 series with minimal functional changes. We are mainly looking for support and best practices related to adapting peripheral initialization, clock configuration, HAL/LL driver compatibility, and resolving architectural differences between the Cortex-M33 and Cortex-M4 cores. Any recommendations, migration references, or similar experiences shared by the community would be highly helpful for a smooth transitio
Did you build your application following the frameworks provided by the mm-iot-sdk, or did you use one of the ports available to integrate into an existing development environment - i.e. mm-iot-zephyr or mm-iot-cmsis?
We are currently using the mm-iot-cmsis port integrated into STM32CubeIDE with HAL drivers, and our application is based on the HaLow_example_spi 1.7.4 package running on the STM32U585VITxQ. We are planning to migrate this setup to the STM32F407VGTx while keeping the same CMSIS/HAL-based structure, and our requirement is only to use the HaLow IC through SPI communication without any additional interface or major application-level changes.
For the HaLow side of things you just need to make sure you have an available SPI master, 4 GPIOs (BUSY, WAKE, RESET, SPI-IRQ) of which two need to be configured as external interrupts. spi-irq should be falling edge triggered, and busy should be rising edge triggered.
With STM32 platforms, make sure the pins for the SPI lines are configured for a “very-high-speed” slew rate, and for performance reasons, you’ll likely want to enable the DMA channels for SPI TX and RX
You will need to modify the implementations in mmhal_wlan.c and possibly mmhal_core.c to suit the STM32F4 HAL.
We are planning to use the mm-iot-cmsis port to integrate the SDK into our existing CMSIS-based development environment.Please share if there are any recommended documents or examples for implementing mm-iot-cmsis.
I would check the user guide at https://www.morsemicro.com/resources/user_guides/MM-IoT-CMSIS-Pack-User-Guide.pdf. Make sure you configure your hardware peripherals as described, and read through section 10 and 11.