Skip to content

CMake: build implemented for STM32 STM32L5 Series#18423

Merged
lupyuen merged 2 commits intoapache:masterfrom
simbit18:simbit18-stm32l5
Feb 23, 2026
Merged

CMake: build implemented for STM32 STM32L5 Series#18423
lupyuen merged 2 commits intoapache:masterfrom
simbit18:simbit18-stm32l5

Conversation

@simbit18
Copy link
Contributor

Summary

  • added STM32 STM32L5 Series

  • CMake added STM32 boards:

    nucleo-l552ze
    stm32l562e-dk

Impact

Impact on user: This PR adds STM32
nucleo-l552ze and stm32l562e-dk boards with CMake build

Impact on build: This PR Implement CMake build for STM32 STM32L5 Series

Impact on hardware: NO

Impact on documentation: NO

Impact on security: NO

Impact on compatibility: NO

Testing

nucleo-l552ze:nsh
D:\nuttxtmp\nuttx>cmake -B build -DBOARD_CONFIG=nucleo-l552ze:nsh -GNinja
-- Found Python3: C:/Users/bit/AppData/Local/Programs/Python/Python313/python.exe (found version "3.13.3") found components: Interpreter
-- nuttx_add_subdirectory: Skipping cxx-oot-build
-- Initializing NuttX
Loaded configuration 'D:/nuttxtmp/nuttx/build/.config.compressed'
Minimal configuration saved to 'D:/nuttxtmp/nuttx/build/defconfig.tmp'
--   ENV{PROCESSOR_ARCHITECTURE} = AMD64
  Select HOST_WINDOWS=y
  Select WINDOWS_NATIVE=y
--   CMake:  3.31.5
--   Ninja:  1.12.1
--   Board:  nucleo-l552ze
--   Config: nsh
--   Appdir: D:/nuttxtmp/apps
-- Building for: Ninja
-- The C compiler identification is GNU 14.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/mingw/mingw64/bin/gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- NuttX Host Tools
-- CMake C compiler: GNU
-- CMake system name: Windows
-- CMake host system processor: AMD64
   TOOLS_DIR path is "D:/nuttxtmp/nuttx"
   HOST = WINDOWS NATIVE
-- Configuring done (1.2s)
-- Generating done (0.0s)
-- Build files have been written to: D:/nuttxtmp/nuttx/build/bin_host
-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- The ASM compiler identification is GNU
-- Found assembler: D:/nx20250410/tools/gcc-arm-none-eabi/bin/arm-none-eabi-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/nx20250410/tools/gcc-arm-none-eabi/bin/arm-none-eabi-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/nx20250410/tools/gcc-arm-none-eabi/bin/arm-none-eabi-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- nuttx_add_subdirectory: Skipping cxx-oot-build
-- Configuring done (15.8s)
-- Generating done (2.3s)
-- Build files have been written to: D:/nuttxtmp/nuttx/build

D:\nuttxtmp\nuttx>cmake --build build
[30/1163] Building C object arch/CMakeFiles/arch.dir/arm/src/stm32l5/stm32l5_gpio.c.o
D:/nuttxtmp/nuttx/arch/arm/src/stm32l5/stm32l5_gpio.c:56:11: note: '#pragma message: CONFIG_STM32L5_USE_LEGACY_PINMAP will be deprecated migrate board.h see tools/stm32_pinmap_tool.py'
   56 | #  pragma message "CONFIG_STM32L5_USE_LEGACY_PINMAP will be deprecated migrate board.h see tools/stm32_pinmap_tool.py"
      |           ^~~~~~~
[1162/1163] Linking CXX executable nuttx
Memory region         Used Size  Region Size  %age Used
           flash:      190492 B       512 KB     36.33%
            sram:        9760 B       256 KB      3.72%
[1163/1163] Generating nuttx.bin
stm32l562e-dk:nsh
D:\nuttxtmp\nuttx>cmake -B build -DBOARD_CONFIG=stm32l562e-dk:nsh -GNinja
-- Found Python3: C:/Users/bit/AppData/Local/Programs/Python/Python313/python.exe (found version "3.13.3") found components: Interpreter
-- nuttx_add_subdirectory: Skipping cxx-oot-build
-- Initializing NuttX
Loaded configuration 'D:/nuttxtmp/nuttx/build/.config.compressed'
Minimal configuration saved to 'D:/nuttxtmp/nuttx/build/defconfig.tmp'
--   ENV{PROCESSOR_ARCHITECTURE} = AMD64
  Select HOST_WINDOWS=y
  Select WINDOWS_NATIVE=y
--   CMake:  3.31.5
--   Ninja:  1.12.1
--   Board:  stm32l562e-dk
--   Config: nsh
--   Appdir: D:/nuttxtmp/apps
-- Building for: Ninja
-- The C compiler identification is GNU 14.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/mingw/mingw64/bin/gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- NuttX Host Tools
-- CMake C compiler: GNU
-- CMake system name: Windows
-- CMake host system processor: AMD64
   TOOLS_DIR path is "D:/nuttxtmp/nuttx"
   HOST = WINDOWS NATIVE
-- Configuring done (0.9s)
-- Generating done (0.0s)
-- Build files have been written to: D:/nuttxtmp/nuttx/build/bin_host
-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- The ASM compiler identification is GNU
-- Found assembler: D:/nx20250410/tools/gcc-arm-none-eabi/bin/arm-none-eabi-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/nx20250410/tools/gcc-arm-none-eabi/bin/arm-none-eabi-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/nx20250410/tools/gcc-arm-none-eabi/bin/arm-none-eabi-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- nuttx_add_subdirectory: Skipping cxx-oot-build
-- Configuring done (14.0s)
-- Generating done (2.4s)
-- Build files have been written to: D:/nuttxtmp/nuttx/build

D:\nuttxtmp\nuttx>cmake --build build
[32/1161] Building C object arch/CMakeFiles/arch.dir/arm/src/stm32l5/stm32l5_gpio.c.o
D:/nuttxtmp/nuttx/arch/arm/src/stm32l5/stm32l5_gpio.c:56:11: note: '#pragma message: CONFIG_STM32L5_USE_LEGACY_PINMAP will be deprecated migrate board.h see tools/stm32_pinmap_tool.py'
   56 | #  pragma message "CONFIG_STM32L5_USE_LEGACY_PINMAP will be deprecated migrate board.h see tools/stm32_pinmap_tool.py"
      |           ^~~~~~~
[1160/1161] Linking CXX executable nuttx
Memory region         Used Size  Region Size  %age Used
           flash:      219132 B      1015 KB     21.08%
            sram:        9628 B       192 KB      4.90%
[1161/1161] Generating nuttx.bin

- added STM32 STM32L5 Series

Signed-off-by: simbit18 <simbit18@gmail.com>
CMake added boards:

 - nucleo-l552ze

 - stm32l562e-dk

Signed-off-by: simbit18 <simbit18@gmail.com>
@simbit18 simbit18 requested a review from raiden00pl as a code owner February 23, 2026 12:00
@github-actions github-actions bot added Arch: arm Issues related to ARM (32-bit) architecture Size: M The size of the change in this PR is medium Board: arm labels Feb 23, 2026
@lupyuen lupyuen merged commit 802de91 into apache:master Feb 23, 2026
26 checks passed
@simbit18 simbit18 deleted the simbit18-stm32l5 branch February 24, 2026 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arch: arm Issues related to ARM (32-bit) architecture Board: arm Size: M The size of the change in this PR is medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants