Rpico2025
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
- [[公式サイト:https://www.raspberrypi.com/documentation/...
&ref(picow.png);
//&ref(pico_pin.png);
*** [[Rpi pico 用の OpenOCD:https://github.com/xpack-dev-...
- &ref(xpack-openocd-0.12.0-7-win32-x64.zip);
*** ソース [#z2495471]
PowerShell 7.5.4
PS C:\Users\magu7> cd .\Program\pico_project\
PS C:\Users\magu7\Program\pico_project> mkdir build
Directory: C:\Users\magu7\Program\pico_project
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 2025/11/30 20:48 build
PS C:\Users\magu7\Program\pico_project> cd .\build\
PS C:\Users\magu7\Program\pico_project\build> cmake -G "...
PICO_SDK_PATH is C:/Program Files/Raspberry Pi/Pico SDK ...
Defaulting PICO_PLATFORM to rp2040 since not specified.
Defaulting PICO platform compiler to pico_arm_gcc since ...
-- 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/Raspberry Pi/Pico S...
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Raspbe...
-- 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/Rasp...
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Build type is Release
Defaulting PICO target board to pico since not specified.
Using board configuration from C:/Program Files/Raspberr...
-- Found Python3: C:/Users/magu7/AppData/Local/Programs/...
TinyUSB available at C:/Program Files/Raspberry Pi/Pico ...
BTstack available at C:/Program Files/Raspberry Pi/Pico ...
cyw43-driver available at C:/Program Files/Raspberry Pi/...
Pico W Bluetooth build support available.
lwIP available at C:/Program Files/Raspberry Pi/Pico SDK...
mbedtls available at C:/Program Files/Raspberry Pi/Pico ...
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/magu7/Prog...
PS C:\Users\magu7\Program\pico_project\build> ninja
[11/76] Building C object CMakeFiles/pico_program.dir/ma...
C:/Users/magu7/Program/pico_project/main.c: In function ...
C:/Users/magu7/Program/pico_project/main.c:30:9: warning...
30 | printf("[LED FEED=1 SENS=0] ADC2 raw=%u ...
| ^~~~~~
C:/Users/magu7/Program/pico_project/main.c:30:9: warning...
C:/Users/magu7/Program/pico_project/main.c:3:1: note: in...
2 | #include "hardware/adc.h"
+++ |+#include <stdio.h>
3 |
[76/76] Linking CXX executable pico_program.elf
PS C:\Users\magu7\Program\pico_project\build>
*** VSC 設定ファイル [#q07ac5da]
- &ref(settings.json,center,settings.json);
- &ref(launch.json,center,launch.json);
-- VSC 起動時に Flash への書き込みを行う(更新時のみ)
*** VSC ターミナルからソースを更新する方法 [#xa9c3ffd]
- build ディクトリの削除
Remove-Item -Recurse -Force build
- CMake の configure
cmake -S . -B build -G Ninja
- CMake の build
cmake --build build
*** 参考 URL [#ea548f3b]
- [[C言語開発の始め方 インストール〜Lチカまで(C/C++ SDK編...
- [[シリアルモニターにUART/printfでログ出力 (Raspberry Pi...
- [[デバッグプローブの接続方法とプログラム書き込み (Raspb...
- [[デバッグプローブ:https://www.raspberrypi.com/products...
-- [[秋月:https://akizukidenshi.com/catalog/g/g117971/]]
- [[Wi-Fi通信、遠隔操作&表示 C言語(Arduinoコマンド)編:...
終了行:
- [[公式サイト:https://www.raspberrypi.com/documentation/...
&ref(picow.png);
//&ref(pico_pin.png);
*** [[Rpi pico 用の OpenOCD:https://github.com/xpack-dev-...
- &ref(xpack-openocd-0.12.0-7-win32-x64.zip);
*** ソース [#z2495471]
PowerShell 7.5.4
PS C:\Users\magu7> cd .\Program\pico_project\
PS C:\Users\magu7\Program\pico_project> mkdir build
Directory: C:\Users\magu7\Program\pico_project
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 2025/11/30 20:48 build
PS C:\Users\magu7\Program\pico_project> cd .\build\
PS C:\Users\magu7\Program\pico_project\build> cmake -G "...
PICO_SDK_PATH is C:/Program Files/Raspberry Pi/Pico SDK ...
Defaulting PICO_PLATFORM to rp2040 since not specified.
Defaulting PICO platform compiler to pico_arm_gcc since ...
-- 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/Raspberry Pi/Pico S...
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Raspbe...
-- 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/Rasp...
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Build type is Release
Defaulting PICO target board to pico since not specified.
Using board configuration from C:/Program Files/Raspberr...
-- Found Python3: C:/Users/magu7/AppData/Local/Programs/...
TinyUSB available at C:/Program Files/Raspberry Pi/Pico ...
BTstack available at C:/Program Files/Raspberry Pi/Pico ...
cyw43-driver available at C:/Program Files/Raspberry Pi/...
Pico W Bluetooth build support available.
lwIP available at C:/Program Files/Raspberry Pi/Pico SDK...
mbedtls available at C:/Program Files/Raspberry Pi/Pico ...
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/magu7/Prog...
PS C:\Users\magu7\Program\pico_project\build> ninja
[11/76] Building C object CMakeFiles/pico_program.dir/ma...
C:/Users/magu7/Program/pico_project/main.c: In function ...
C:/Users/magu7/Program/pico_project/main.c:30:9: warning...
30 | printf("[LED FEED=1 SENS=0] ADC2 raw=%u ...
| ^~~~~~
C:/Users/magu7/Program/pico_project/main.c:30:9: warning...
C:/Users/magu7/Program/pico_project/main.c:3:1: note: in...
2 | #include "hardware/adc.h"
+++ |+#include <stdio.h>
3 |
[76/76] Linking CXX executable pico_program.elf
PS C:\Users\magu7\Program\pico_project\build>
*** VSC 設定ファイル [#q07ac5da]
- &ref(settings.json,center,settings.json);
- &ref(launch.json,center,launch.json);
-- VSC 起動時に Flash への書き込みを行う(更新時のみ)
*** VSC ターミナルからソースを更新する方法 [#xa9c3ffd]
- build ディクトリの削除
Remove-Item -Recurse -Force build
- CMake の configure
cmake -S . -B build -G Ninja
- CMake の build
cmake --build build
*** 参考 URL [#ea548f3b]
- [[C言語開発の始め方 インストール〜Lチカまで(C/C++ SDK編...
- [[シリアルモニターにUART/printfでログ出力 (Raspberry Pi...
- [[デバッグプローブの接続方法とプログラム書き込み (Raspb...
- [[デバッグプローブ:https://www.raspberrypi.com/products...
-- [[秋月:https://akizukidenshi.com/catalog/g/g117971/]]
- [[Wi-Fi通信、遠隔操作&表示 C言語(Arduinoコマンド)編:...
ページ名: