Skip to content

tim108108/rp2shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Let's start !!

如果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

使用 docker 建立開發環境,並執行

sh env.sh build
sh env.sh run

在 docker 編譯

sh run.sh build
sh run.sh clr

Code struct

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()
    }
Loading
stateDiagram-v2
    reset --> shell
    %% state machine
    shell --> app
    shell --> exit
    shell --> tab
    tab --> app
    app --> shell
Loading

rp2040

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.

CLI refer

  1. https://github.com/Nrusher/nr_micro_shell
  2. https://github.com/davidgiven/FUZIX
  3. https://github.com/lurk101/pshell
  4. https://gitee.com/somebug/atomlib
  5. https://github.com/fapplin/rp2040-pico-command-line-interpreter
  6. https://github.com/mattwach/pico_uart_console
  7. https://github.com/RC2014Z80/picoterm
  8. https://github.com/JingoC/terminal
  9. https://github.com/maxpoliak/ile-cli
  10. https://www.gnu.org/prep/standards/standards.html#Command_002dLine-Interfaces

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published