simbit18 opened a new pull request, #18423:
URL: https://github.com/apache/nuttx/pull/18423
## 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
<details>
<summary>nucleo-l552ze:nsh</summary>
```
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
```
</details>
<details>
<summary>stm32l562e-dk:nsh</summary>
```
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
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]