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

   ## Summary
   
   - added Microchip's SAM3 SAM4 Family
   
   - CMake added boards NXP boards:
   
       arduino-due
      flipnclick-sam3x
      sam3u-ek
      sam4cmp-db
      sam4e-ek
      sam4l-xplained
      sam4s-xplained
      sam4s-xplained-pro
   
   ## Impact
   
   Impact on user: This PR adds NXP 
   arduino-due, flipnclick-sam3x,sam3u-ek, sam4cmp-db, sam4e-ek, 
sam4l-xplained, sam4s-xplained and  sam4s-xplained-pro  boards with CMake build
   
   Impact on build: This PR Implement CMake build for the Microchip's SAM3 SAM4 
Family
   
   Impact on hardware: NO
   
   Impact on documentation: NO
   
   Impact on security: NO
   
   Impact on compatibility: NO
   
   ## Testing
   
   <details>
   <summary>arduino-due:nsh</summary>
   
   ```
   
   D:\nuttxtmp\nuttx>cmake -B build -DBOARD_CONFIG=arduino-due: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-due
   --   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 (0.8s)
   -- 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
   -- nuttx_add_subdirectory: Skipping cxx-oot-build
   -- Configuring done (11.7s)
   -- Generating done (2.1s)
   -- Build files have been written to: D:/nuttxtmp/nuttx/build
   
   D:\nuttxtmp\nuttx>cmake --build build
   [1132/1133] Linking CXX executable nuttx
   Memory region         Used Size  Region Size  %age Used
              flash:       84844 B       512 KB     16.18%
              sram0:        5344 B        64 KB      8.15%
              sram1:          0 GB        32 KB      0.00%
             nfcram:          0 GB         4 KB      0.00%
   [1133/1133] Generating nuttx.bin
   ```
   </details>
   
   
   <details>
   <summary>flipnclick-sam3x:nsh</summary>
   
   ```
   D:\nuttxtmp\nuttx>cmake -B build -DBOARD_CONFIG=flipnclick-sam3x: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:  flipnclick-sam3x
   --   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.8s)
   -- 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
   -- nuttx_add_subdirectory: Skipping cxx-oot-build
   -- Configuring done (12.1s)
   -- Generating done (2.2s)
   -- Build files have been written to: D:/nuttxtmp/nuttx/build
   
   D:\nuttxtmp\nuttx>cmake --build build
   [1132/1133] Linking CXX executable nuttx
   Memory region         Used Size  Region Size  %age Used
              flash:       85020 B       512 KB     16.22%
              sram0:        5344 B        64 KB      8.15%
              sram1:          0 GB        32 KB      0.00%
             nfcram:          0 GB         4 KB      0.00%
   [1133/1133] Generating nuttx.bin
   ```
   </details>
   
   
   <details>
   <summary>sam3u-ek:nsh</summary>
   
   ```
   D:\nuttxtmp\nuttx>cmake -B build -DBOARD_CONFIG=sam3u-ek: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:  sam3u-ek
   --   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 (0.8s)
   -- 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
   -- nuttx_add_subdirectory: Skipping cxx-oot-build
   -- Configuring done (12.8s)
   -- Generating done (2.2s)
   -- Build files have been written to: D:/nuttxtmp/nuttx/build
   
   D:\nuttxtmp\nuttx>cmake --build build
   [1126/1127] Linking C executable nuttx
   Memory region         Used Size  Region Size  %age Used
              flash:       83848 B       256 KB     31.99%
              sram1:        5208 B        32 KB     15.89%
              sram2:          0 GB        16 KB      0.00%
   [1127/1127] Generating nuttx.bin
   ```
   </details>
   
   
   <details>
   <summary>sam4cmp-db:nsh</summary>
   
   ```
   D:\nuttxtmp\nuttx>cmake -B build -DBOARD_CONFIG=sam4cmp-db: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:  sam4cmp-db
   --   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.3s)
   -- 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
   -- nuttx_add_subdirectory: Skipping cxx-oot-build
   -- Configuring done (15.9s)
   -- Generating done (2.4s)
   -- Build files have been written to: D:/nuttxtmp/nuttx/build
   
   D:\nuttxtmp\nuttx>cmake --build build
   [1143/1144] Linking C executable nuttx
   Memory region         Used Size  Region Size  %age Used
              flash:      225104 B         1 MB     21.47%
               sram:        7052 B       128 KB      5.38%
   [1144/1144] Generating nuttx.bin
   ```
   </details>
   
   
   <details>
   <summary>sam4e-ek:nsh</summary>
   
   ```
   D:\nuttxtmp\nuttx>cmake -B build -DBOARD_CONFIG=sam4e-ek: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:  sam4e-ek
   --   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
   -- nuttx_add_subdirectory: Skipping cxx-oot-build
   -- Configuring done (13.8s)
   -- Generating done (2.5s)
   -- Build files have been written to: D:/nuttxtmp/nuttx/build
   
   D:\nuttxtmp\nuttx>cmake --build build
   [1370/1371] Linking C executable nuttx
   Memory region         Used Size  Region Size  %age Used
              flash:      152224 B         1 MB     14.52%
               sram:       23744 B       128 KB     18.12%
   [1371/1371] Generating nuttx.bin
   ```
   </details>
   
   
   <details>
   <summary>sam4l-xplained:nsh</summary>
   
   ```
   D:\nuttxtmp\nuttx>cmake -B build -DBOARD_CONFIG=sam4l-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:  sam4l-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.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
   -- nuttx_add_subdirectory: Skipping cxx-oot-build
   -- Configuring done (14.0s)
   -- Generating done (2.6s)
   -- Build files have been written to: D:/nuttxtmp/nuttx/build
   
   D:\nuttxtmp\nuttx>cmake --build build
   [1105/1106] Linking CXX executable nuttx
   Memory region         Used Size  Region Size  %age Used
              flash:       68008 B       256 KB     25.94%
               sram:        5584 B        32 KB     17.04%
   [1106/1106] Generating nuttx.bin
   ```
   </details>
   
   
   <details>
   <summary>sam4s-xplained:nsh</summary>
   
   ```
   D:\nuttxtmp\nuttx>cmake -B build -DBOARD_CONFIG=sam4s-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:  sam4s-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
   -- nuttx_add_subdirectory: Skipping cxx-oot-build
   -- Configuring done (16.4s)
   -- Generating done (3.8s)
   -- Build files have been written to: D:/nuttxtmp/nuttx/build
   
   D:\nuttxtmp\nuttx>cmake --build build
   [1084/1085] Linking CXX executable nuttx
   Memory region         Used Size  Region Size  %age Used
              flash:       64200 B         1 MB      6.12%
               sram:        5216 B       128 KB      3.98%
   [1085/1085] Generating nuttx.bin
   ```
   </details>
   
   
   <details>
   <summary>sam4s-xplained-pro:nsh</summary>
   
   ```
   D:\nuttxtmp\nuttx>cmake -B build -DBOARD_CONFIG=sam4s-xplained-pro: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:  sam4s-xplained-pro
   --   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
      TOOLS_DIR path is "D:/nuttxtmp/nuttx"-- CMake system name: Windows
   -- CMake host system processor: AMD64
   
      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
   -- nuttx_add_subdirectory: Skipping cxx-oot-build
   -- Configuring done (14.8s)
   -- Generating done (2.6s)
   -- Build files have been written to: D:/nuttxtmp/nuttx/build
   
   D:\nuttxtmp\nuttx>cmake --build build
   [1180/1182] Linking CXX executable nuttx
   Memory region         Used Size  Region Size  %age Used
             flash0:      129820 B         1 MB     12.38%
             flash1:          0 GB         1 MB      0.00%
               sram:        9432 B       160 KB      5.76%
   [1182/1182] 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]

Reply via email to