HAL1 automatic detection script

STM32Cube HAL2 introduces an advanced tool to streamline the migration process from HAL1 to HAL2. The HAL1 automatic detection script is specifically designed to support this transition by:

  • Analyzing existing applications and detecting all HAL1 API calls

  • Highlighting APIs that require updates or replacements

  • Generating comprehensive logs and reports to guide users step-by-step through the migration to HAL2 APIs

Note

The STM32Cube HAL1-to-HAL2 migration tool is provided as a standalone HAL2_Migrator ZIP package available for download from st.com

This section covers:

  • The concept of a migration script: its scope and benefits.

  • Setup and configuration of the script: detailed instructions.

  • Script features: demonstration of its capabilities.

script scope

An overview of the migration script: scope and boundaries.

Script scope
script environment setup

Hands-on migration script setup and configuration.

Script setup and usage
script features

Script features and capabilities.

Script stubbing features