Created
March 2, 2022 09:46
-
-
Save KunYi/9994018131ec178577cab7645d115a5b to your computer and use it in GitHub Desktop.
build Raspberry PICO 2040 on Windows 10, need platform toolchain and cross arm toolchain
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake -DCMAKE_MAKE_PROGRAM=ninja.exe -G "Ninja" .. | |
Using PICO_SDK_PATH from environment ('C:\Users\kunic\source\repos\pico\pico-sdk') | |
PICO_SDK_PATH is C:/Users/kunic/source/repos/pico/pico-sdk | |
Defaulting PICO_PLATFORM to rp2040 since not specified. | |
Defaulting PICO platform compiler to pico_arm_gcc since not specified. | |
-- Defaulting build type to 'Release' since not specified. | |
PICO compiler is pico_arm_gcc | |
-- The C compiler identification is GNU 10.3.1 | |
-- The CXX compiler identification is GNU 10.3.1 | |
-- The ASM compiler identification is GNU | |
-- Found assembler: C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/bin/arm-none-eabi-gcc.exe | |
Defaulting PICO target board to pico since not specified. | |
Using board configuration from C:/Users/kunic/source/repos/pico/pico-sdk/src/boards/include/boards/pico.h | |
-- Found Python3: C:/Python310/python.exe (found version "3.10.0") found components: Interpreter | |
TinyUSB available at C:/Users/kunic/source/repos/pico/pico-sdk/lib/tinyusb/src/portable/raspberrypi/rp2040; enabling build support for USB. | |
-- Configuring done | |
-- Generating done | |
-- Build files have been written to: C:/Users/kunic/source/repos/pico/pico-examples/build | |
C:\Users\kunic\source\repos\pico\pico-examples\build>ninja | |
[13/5864] Performing configure step for 'PioasmBuild' | |
-- The CXX compiler identification is MSVC 19.31.31104.0 | |
-- Detecting CXX compiler ABI info | |
-- Detecting CXX compiler ABI info - done | |
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.31.31103/bin/Hostx86/x86/cl.exe - skipped | |
-- Detecting CXX compile features | |
-- Detecting CXX compile features - done | |
-- Configuring done | |
-- Generating done | |
-- Build files have been written to: C:/Users/kunic/source/repos/pico/pico-examples/build/pioasm | |
[14/5864] Performing configure step for 'ELF2UF2Build' | |
-- The C compiler identification is MSVC 19.31.31104.0 | |
-- The CXX compiler identification is MSVC 19.31.31104.0 | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.31.31103/bin/Hostx86/x86/cl.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: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.31.31103/bin/Hostx86/x86/cl.exe - skipped | |
-- Detecting CXX compile features | |
-- Detecting CXX compile features - done | |
-- Configuring done | |
-- Generating done | |
-- Build files have been written to: C:/Users/kunic/source/repos/pico/pico-examples/build/elf2uf2 | |
[15/5864] Performing build step for 'ELF2UF2Build' | |
[1/2] Building CXX object CMakeFiles\elf2uf2.dir\main.cpp.obj | |
C:\Users\kunic\source\repos\pico\pico-sdk\tools\elf2uf2\main.cpp(331): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. | |
C:\Users\kunic\source\repos\pico\pico-sdk\tools\elf2uf2\main.cpp(337): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. | |
[2/2] Linking CXX executable elf2uf2.exe | |
[28/5864] Performing build step for 'PioasmBuild' | |
[1/10] Building CXX object CMakeFiles\pioasm.dir\hex_output.cpp.obj | |
[2/10] Building CXX object CMakeFiles\pioasm.dir\pio_disassembler.cpp.obj | |
[3/10] Building CXX object CMakeFiles\pioasm.dir\ada_output.cpp.obj | |
[4/10] Building CXX object CMakeFiles\pioasm.dir\python_output.cpp.obj | |
[5/10] Building CXX object CMakeFiles\pioasm.dir\c_sdk_output.cpp.obj | |
[6/10] Building CXX object CMakeFiles\pioasm.dir\main.cpp.obj | |
[7/10] Building CXX object CMakeFiles\pioasm.dir\gen\lexer.cpp.obj | |
[8/10] Building CXX object CMakeFiles\pioasm.dir\gen\parser.cpp.obj | |
[9/10] Building CXX object CMakeFiles\pioasm.dir\pio_assembler.cpp.obj | |
[10/10] Linking CXX executable pioasm.exe | |
[5864/5864] Linking CXX executable watchdog\hello_watchdog\hello_watchdog.elf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment