Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Rp2350js

БесплатноПоддерживается

Raspberry Pi Pico (2) emulator. Develop/test/debug RP2040/2350 projects on your PC/in your CI stack. Includes a GDB interface, an MCP server, and the rp2_emu CL

GitHubEmbed

Описание

Raspberry Pi Pico (2) emulator. Develop/test/debug RP2040/2350 projects on your PC/in your CI stack. Includes a GDB interface, an MCP server, and the rp2_emu CLI + background daemon for agent-driven firmware debugging.

README

rp2350js (with rp2040 support, too)

https://github.com/c1570/rp2350js

Raspberry Pi Pico (2) emulator. Develop/test/debug RP2040/2350 projects on your PC/in your CI stack.

This is a much improved fork of Uri Shaked's rp2040js project. For its original README, see README_OLD.md.

Status of rp2350js

  • RISC-V/Hazard3 support (machine mode; user mode only as a tracked privilege level, no privilege checks)
  • basic ARM/Cortex M33 support (no secure/insecure mode)
  • runs from bootrom
  • runs both no_flash/RAM binaries and flash binaries
  • runs pico-examples/blink_simple.c, hello_timer.c, hello_usb.c
  • runs Connomore64 main and video mcu (dual core, PIO, DMA)
  • runs MicroPython (both RISC-V and ARM variants)
  • boots Linux (RISC-V nommu, from flash + 8MB PSRAM)
  • GDB interface ("monitor" outputting PIO/GPIO info; memory watch not supported)
  • MCP server and Agent Skill for interfacing with coding agents (features similar to GDB); register MCP with, e.g., opencode mcp add and npx ts-node demo/mcp-server.ts; for skill CLI helper see .opencode/.claude
  • built-in cycle profiler using markers in the RP's firmware
  • on recent PCs, expect about 70M cycles per second (with one RP2040/2350 core busy, all else idle; see npm run bench:cpu)
  • can get transpiled to C for ~3x speed (cts2c, also see releases)

Implemented

* = needs checking/fixing

Bootrom
GPIOs 30-47
BOOTRAM_BASE
PIO updates (register locations for INTR and up, GPIOBASE, SHIFTCTRL.IN_COUNT, CTRL.NEXTPREVx, IRQ/WAIT NEXT/PREV)
DMA updates (2->4 shared IRQs, 12->16 channels, CHxx_TRANS_COUNT/MODE, CTRL register offsets)
DREQ updates
PIO2_BASE
PIO SHIFTCTRL FJOIN_RX/FJOIN_TX
SYSINFO_BASE
SYSCFG_BASE *
TIMER1_BASE
RISC-V Platform Timer (64-bit mtime/mtimecmp, drives MIP.MTIP and SIO_IRQ_MTIMECMP)
PLL_SYS_BASE *
External interrupts *
updated IRQ constants
Xh3irq (MEIEA, MEIPA, MEIFA, MEIPRA, MEINEXT, MEICONTEXT)
Xh3power (h3.block and h3.unblock)
Xh3bextm (h3.bextmi and h3.bextm)
all Hazard3 opcodes (including RV32C, RV32Zcb, etc.; simplified reservation for lr.w/sc.w)
PSRAM on QMI CS1 (direct-mode ID read, 8MB at XIP window 0x11000000, executable)
Hazard3 traps: misaligned load/store/AMO, illegal instruction, ecall (U/M), MPP save/restore, MTVAL
basic Cortex M33 support (runs Micropython)
somewhat correct instruction cycle counts *
flash erase/write (RP2350)

Missing

Timer and System Interrupts (Xh3irq is there though)
Exceptions other than the Hazard3 traps listed above (e.g., bus faults on invalid addresses)
PSRAM: QMI timing/format registers, XIP_CTRL write-enable, cache policy aliases (all aliases map to the same memory)
Minor GPIO updates (IRQSUMMARY, USB pins, PROC1_INTxx)
Minor DMA updates (INCR_READ_REV, etc.)
DMA contention (on hardware, the whole DMA unit does one transfer per cycle, not each channel)
PIO updates (IRQx_INTE, RXF0_PUTGET0, instruction changes, etc.)
PWM updates (8->12 slices, second shared interrupt)
TIMER: registers LOCK and SOURCE
Correct timers when changing sys_clk/PLL
QMI address translation
SIO: secure vs. insecure, SIO_NONSEC_BASE
Doorbells
TMDS Encoder
RTC
XIP_MAINTENANCE_BASE
XIP_AUX_BASE
XOSC_BASE
PLL_USB_BASE
ACCESSCTRL_BASE
BUSCTRL_BASE
HSTX_FIFO_BASE
HSTX_CTRL_BASE
XIP_CTRL_BASE
XIP_QMI_BASE
WATCHDOG_BASE
ROSC_BASE
TRNG_BASE
SHA256_BASE
POWMAN_BASE *
TICKS_BASE
OTP_BASE ...
CORESIGHT_PERIPH_BASE ...
GLITCH_DETECTOR_BASE

Hazard3: User mode privilege checks (CSR access, mret, wfi)
Xh3pmpm (Physical Memory Protection PMP)
cycle penalties for dependent register usage, APB access, XIP access
full lr.w/sc.w reservation semantics would need (expensive) tracking of all SRAM (DMA etc.) writes

Notes

License

  • Released under the MIT licence.
  • Copyright (c) 2023-2026, github.com/c1570 (rp2350js)
  • Copyright (c) 2021-2025, Uri Shaked (original rp2040js project)
  • thanks go to https://github.com/0x4D44/picoem (M33 reference), mingpepe (initial dual core support)

from github.com/c1570/rp2350js

Установить Rp2350js в Claude Desktop, Claude Code, Cursor

Рекомендуется · одна команда, все IDE
unyly install rp2350js

Ставит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.

Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh

Или настроить вручную

Выполни в терминале:

claude mcp add rp2350js -- npx -y rp2350js

Пошаговые гайды: как установить Rp2350js

FAQ

Rp2350js MCP бесплатный?

Да, Rp2350js MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Rp2350js?

Нет, Rp2350js работает без API-ключей и переменных окружения.

Rp2350js — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Rp2350js в Claude Desktop, Claude Code или Cursor?

Открой Rp2350js на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Изменения

Версии и запрашиваемые доступы со временем.

  • Новая версия опубликована

Похожие MCP

Compare Rp2350js with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории ai