如果pico-sdk沒有submodule update,某些模組(tinyusb)沒安裝,會導致PC偵測不到rp2040
git clone https://github.com/tim108108/rp2shell.git
git clone https://github.com/raspberrypi/pico-sdk.git
cd pico-sdk
git submodule update --init
cd ..
建立toolchain,pico-sdk位置固定在目錄最上層
mkdir build
cd build
cmake ..
當要編譯時在build路徑下執行
rp2shell/build/make -j
接著把build目錄下的rp2040_project.uf2
燒錄到rp2040
使用 docker 建立開發環境,並執行
sh env.sh build
sh env.sh run
在 docker 編譯
sh run.sh build
sh run.sh clr
classDiagram
pt_console --> shell_function: (argc, argv)
class pt_console{
buffer: *char
count: char
+console_reset()
+console_getchar()
+console_getopt()
+console_shell()
}
class shell_function{
argc: char
argv: *char
+ls()
+cd()
}
stateDiagram-v2
reset --> shell
%% state machine
shell --> app
shell --> exit
shell --> tab
tab --> app
app --> shell
Raspberry Pi Pico SDK Examples
Raspberry Pi Pico C/C++ SDK
Online Raspberry Pi Pico SDK Hardware APIs docs
RP2040(树莓派Pico)Examples, Index
FreeRTOS - 成大資工
Pico C/C++ SDK waveshare ver.
Use the development board as RP2040-Zero.
- https://github.com/Nrusher/nr_micro_shell
- https://github.com/davidgiven/FUZIX
- https://github.com/lurk101/pshell
- https://gitee.com/somebug/atomlib
- https://github.com/fapplin/rp2040-pico-command-line-interpreter
- https://github.com/mattwach/pico_uart_console
- https://github.com/RC2014Z80/picoterm
- https://github.com/JingoC/terminal
- https://github.com/maxpoliak/ile-cli
- https://www.gnu.org/prep/standards/standards.html#Command_002dLine-Interfaces