simbit18 opened a new pull request, #18392:
URL: https://github.com/apache/nuttx/pull/18392

   ## Summary
   
   - added Microchip's SAM D/L Family
   
   - CMake added boards Microchip's boards:
   
       arduino-m0
       circuit-express
       samd20-xplained
       samd21-xplained
       saml21-xplained
       xiao-seeeduino
   
   
   ## Impact
   
   Impact on user: This PR adds Microchip's
       arduino-m0, circuit-express, samd20-xplained, samd21-xplained, 
saml21-xplained and xiao-seeeduinoa boards with CMake build
   
   Impact on build: This PR Implement CMake build for the Microchip's SAM D/L 
Family
   
   Impact on hardware: NO
   
   Impact on documentation: NO
   
   Impact on security: NO
   
   Impact on compatibility: NO
   
   ## Testing
   
   <details>
   <summary>arduino-m0:nsh</summary>
   
   ```
   
   D:\nuttxtmp\nuttx>cmake -B build -DBOARD_CONFIG=arduino-m0: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:  arduino-m0
   --   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.0s)
   -- 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.5s)
   -- Generating done (2.8s)
   -- Build files have been written to: D:/nuttxtmp/nuttx/build
   
   D:\nuttxtmp\nuttx>cmake --build build
   [901/902] Linking CXX executable nuttx
   Memory region         Used Size  Region Size  %age Used
              flash:       38092 B       256 KB     14.53%
               sram:        2628 B        32 KB      8.02%
   [902/902] Generating nuttx.bin
   
   ```
   </details>
   
   
   <details>
   <summary>circuit-express:nsh</summary>
   
   ```
   
   D:\nuttxtmp\nuttx>cmake -B build -DBOARD_CONFIG=circuit-express: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:  circuit-express
   --   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
      TOOLS_DIR path is "D:/nuttxtmp/nuttx"
   -- CMake host system processor: AMD64
      HOST = WINDOWS NATIVE
   -- Configuring done (1.0s)
   -- 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.2s)
   -- Generating done (2.8s)
   -- Build files have been written to: D:/nuttxtmp/nuttx/build
   
   D:\nuttxtmp\nuttx>cmake --build build
   [896/896] Linking C executable nuttx
   Memory region         Used Size  Region Size  %age Used
              flash:       78340 B       256 KB     29.88%
               sram:        1712 B        32 KB      5.22%
   
   ```
   </details>
   
   
   <details>
   <summary>samd20-xplained:nsh</summary>
   
   ```
   D:\nuttxtmp\nuttx>cmake -B build -DBOARD_CONFIG=samd20-xplained: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:  samd20-xplained
   --   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.1s)
   -- 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 (16.3s)
   -- Generating done (3.0s)
   -- Build files have been written to: D:/nuttxtmp/nuttx/build
   
   D:\nuttxtmp\nuttx>cmake --build build
   [901/902] Linking CXX executable nuttx
   Memory region         Used Size  Region Size  %age Used
              flash:       37876 B       256 KB     14.45%
               sram:        1956 B        32 KB      5.97%
   [902/902] Generating nuttx.bin
   
   ```
   </details>
   
   
   <details>
   <summary>samd21-xplained:nsh</summary>
   
   ```
   
   D:\nuttxtmp\nuttx>cmake -B build -DBOARD_CONFIG=samd21-xplained: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:  samd21-xplained
   --   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 (16.1s)
   -- Generating done (2.8s)
   -- Build files have been written to: D:/nuttxtmp/nuttx/build
   
   D:\nuttxtmp\nuttx>cmake --build build
   [901/902] Linking CXX executable nuttx
   Memory region         Used Size  Region Size  %age Used
              flash:       37860 B       256 KB     14.44%
               sram:        1972 B        32 KB      6.02%
   [902/902] Generating nuttx.hex
   ```
   </details>
   
   
   <details>
   <summary>saml21-xplained:nsh</summary>
   
   ```
   
   D:\nuttxtmp\nuttx>cmake -B build -DBOARD_CONFIG=saml21-xplained: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:  saml21-xplained
   --   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.1s)
   -- 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 (16.2s)
   -- Generating done (2.8s)
   -- Build files have been written to: D:/nuttxtmp/nuttx/build
   
   D:\nuttxtmp\nuttx>cmake --build build
   [24/902] Building C object 
arch/CMakeFiles/arch.dir/arm/src/samd2l2/saml_clockconfig.c.o
   D:/nuttxtmp/nuttx/arch/arm/src/samd2l2/saml_clockconfig.c: In function 
'sam_periph_clocks':
   D:/nuttxtmp/nuttx/arch/arm/src/samd2l2/saml_clockconfig.c:1281:2: warning: 
#warning Missing logic [-Wcpp]
    1281 | #warning Missing logic
         |  ^~~~~~~
   [901/902] Linking CXX executable nuttx
   Memory region         Used Size  Region Size  %age Used
              flash:       38176 B       256 KB     14.56%
               sram:        1972 B        32 KB      6.02%
              lpram:          0 GB         8 KB      0.00%
   [902/902] Generating nuttx.hex
   
   ```
   </details>
   
   
   <details>
   <summary>xiao-seeeduino:nsh</summary>
   
   ```
   
   D:\nuttxtmp\nuttx>cmake -B build -DBOARD_CONFIG=xiao-seeeduino: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:  xiao-seeeduino
   --   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 (16.0s)
   -- Generating done (2.8s)
   -- Build files have been written to: D:/nuttxtmp/nuttx/build
   
   D:\nuttxtmp\nuttx>cmake --build build
   [902/903] Linking CXX executable nuttx
   Memory region         Used Size  Region Size  %age Used
              flash:       38080 B       248 KB     14.99%
               sram:        1700 B        32 KB      5.19%
   [903/903] Generating nuttx.hex
   
   ```
   </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]

Reply via email to