Rake

ai.rakelabs由 rakelabs.ai 发布官方发布者v3.0.0更新于 Nov 24, 2026

Write and debug firmware with exact chip data

已验证Streamable HTTP可网页运行知识与记忆开发者工具

概览

AI 生成的概览

Rake 为助手提供精确的单片机寄存器、中断和引脚数据、外设时序计算、代码与配置检查以及崩溃解码,面向 C 固件开发。

可以做什么
按厂商文件查询器件、寄存器、位域、中断和引脚复用,并核对寄存器、字段与中断处理函数名称。解码寄存器转储,并比较两次转储的差异。计算 CAN 位时序、UART 波特率分频、定时器预分频、I2C 时序和看门狗超时。解码 Cortex-M 故障寄存器、RISC-V trap、ESP-IDF panic 和 Zephyr 致命错误。检查 Zephyr Kconfig 符号、conf 文件与 devicetree 绑定,以及 FreeRTOS 配置、ESP-IDF API 用法和编译链接参数。获取平台陷阱、症状诊断步骤、调试技巧、任务操作手册、故障清单和固件编码规则。
适用场景
适合为受支持的 MCU 系列编写或审查寄存器级固件、配置 CAN、UART、I2C、定时器或看门狗等外设,或排查板子卡死、异常和复位问题。也适合按特定版本核对 Zephyr、FreeRTOS 或 ESP-IDF 的配置与代码。
运行要求
需要远程 streamable HTTP 端点;未声明任何软件包、环境变量或请求头。助手需在工具调用中提供器件型号、寄存器转储、崩溃输出、代码或配置文本。覆盖范围限于所列 MCU 系列和 Zephyr 版本,且不含数据手册原文。
安装前请注意
服务器会收到你发送的代码、配置、寄存器转储和崩溃日志,可能泄露产品细节。其回答是参考资料和计算值,不能证明你的硬件实际行为,需在目标板上验证。该端点未声明身份验证。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Rake,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/ai.rakelabs%2Frake-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "rake": {
      "type": "http",
      "url": "https://mcp.rakelabs.ai/mcp"
    }
  }
}

工具

28

find_device

Find a microcontroller in the data

Says what data the server has for a part name: the device with register data, the vector table and the pin data, and the exact names to use in the other tools. Use it first when a part number is loose or partial, such as "stm32g431" or "nrf5340", or to see whether a part is covered at all. Register data covers ST, Nordic, Raspberry Pi, Espressif, Microchip, NXP and TI parts, vector tables ST parts and pin data ST parts.

输入参数name必填

lookup_register

Look up a register or bit field

Returns the address, size, access, reset value and bit fields of a register of a microcontroller, or the registers of a peripheral, from the vendor's own file for the part. Use it instead of recalling a register address, a bit position or a field name from memory, and to find what an address in a fault report or a debugger belongs to. Covers 935 devices from ST, Nordic, Raspberry Pi, Espressif, Microchip, NXP and TI, and says so when it has no data for a part.

输入参数name必填device必填

check_registers

Check register and field names

Checks a list of register, field and peripheral names against the vendor's own file for a microcontroller and says for each whether it exists, with its address or bit position, or names the closest that do. Use it after writing or reviewing register-level code, on every name the code uses, to catch a register or bit that does not exist on this part. Covers 935 devices from ST, Nordic, Raspberry Pi, Espressif, Microchip, NXP and TI, and says so when it has no data for a part. Names follow that file. Another file of the vendor, such as a header, can spell a few of them differently.

输入参数names必填device必填

decode_registers

Decode or compare register dumps

Decodes a register dump of a microcontroller into registers and bit fields, with the named value of each field, from the vendor's own file for the part. With a second dump it returns only what differs between the two. Use it to see what a peripheral is really set to, and to compare a setup that works with one that does not: a vendor example against your code, or a good board against a bad one. A dump is a read: on some status and data registers a read clears flags or takes a byte. Covers 935 devices from ST, Nordic, Raspberry Pi, Espressif, Microchip, NXP and TI, and says so when it has no data for a part.

输入参数dump必填device必填compare

list_interrupts

List the interrupts of a part

Returns the interrupt numbers and names of a microcontroller and, where the data has the vendor's device header, the handler names of the startup file. Use it to find the interrupt number for a call that enables or prioritises it, the exact handler name to define, or which peripherals share a vector. Handler names come from device headers, which the data has for ST parts. For other parts the list comes from the file that the registers come from, without handler names.

输入参数device必填filter

check_interrupt_handlers

Check interrupt handler names

Checks interrupt handler function names against the vector table of a part and says for each whether the startup file declares it, or names the closest that it does. Use it on every interrupt handler function in the code: a handler with a name the startup file does not declare compiles and links, and is never called. It needs the vendor's device header, which the data has for ST parts. For another part it says so and judges nothing.

输入参数names必填device必填

find_pins

Find pin functions

Returns the pins of a part that can carry a signal, with what the code must select to route it there, such as the alternate function, or every signal of one pin. Use it to pick the pin for a peripheral signal such as USART2_TX, to get the alternate function number for it, or to see what else a pin can do. Pin data comes from the vendors' own pin files, which the data has for ST parts, per package. For another part it says so.

输入参数pinpart必填signal

calc_can_bit_timing

Calculate CAN bit timing

Computes the CAN bit timing for a clock, a bit rate and a sample point: prescaler, time quanta, both segments and the jump width, with the real bit rate, the real sample point and the register value. Use it when setting up CAN or CAN FD instead of working the values out by hand. The controller classic gives the counts for a classic CAN controller whose time quantum is the prescaler times the clock period, within the fields most of them have: a prescaler up to 64, segments up to 16 and 8 quanta, and a jump width up to 4. sja1000 and mcp2515 are those two controllers, which halve the oscillator before the prescaler and have limits of their own. With bxcan (CAN_BTR of STM32) or mcan-nominal and mcan-data (NBTP and DBTP of Bosch M_CAN, which several vendors use for CAN FD), it also packs the register value.

输入参数bit_rate必填clock_hz必填controller必填sample_point

calc_uart_baud

Calculate a UART baud rate divisor

Computes the divisor for a UART baud rate from the peripheral clock, with the real baud rate and its error in percent, and the BRR value for STM32. Use it to set a baud rate or to find out why a link shows framing errors or garbage. The peripheral generic fits any UART that divides its clock by a whole number, with 16 or 8 samples a bit. For the STM32 USART and LPUART it also gives the BRR value.

输入参数baud必填clock_hz必填peripheral必填oversampling

calc_timer_prescaler

Calculate timer prescaler and reload

Computes the prescaler and the auto-reload value of a timer for an update or PWM frequency, with the real frequency, its error and the PWM duty resolution in bits. Use it to set up a periodic interrupt or a PWM output. For any timer with a 16-bit prescaler and a 16-bit or 32-bit counter that both count from 0, which is how most microcontroller timers are built.

输入参数clock_hz必填counter_bitsfrequency_hz必填

calc_i2c_timing

Calculate I2C timing

Computes I2C timing from the limits of the I2C-bus specification: the SCL low and high times for a bus speed as counts of the controller's clock, or the register value of a controller it knows. It can also check an existing register value against the limits. Use it to set up an I2C controller instead of copying a timing value from another project, where the clock differs. The controller generic gives counts for any controller that takes SCL low and high times. The controller stm32-timingr gives I2C_TIMINGR for the STM32 series that have that register, which F1, F2, F4 and L1 do not.

输入参数mode必填bus_hzfall_nsrise_nstimingrclock_hz必填controller必填analog_filterdigital_filter

calc_watchdog_timeout

Calculate watchdog register values

Computes the register values of a watchdog for a timeout, with the real timeout. Use it to set up a watchdog instead of working the prescaler and the reload value out by hand. It knows the STM32 independent watchdog (IWDG_PR and IWDG_RLR), the STM32 window watchdog (WDGTB and the counter) and the nRF watchdog (CRV). The timeout is never shorter than the one asked for.

输入参数clock_hzwatchdog必填timeout_ms必填

decode_cortex_m_fault

Decode Cortex-M fault registers

Decodes Arm Cortex-M fault status register values (CFSR, and optionally HFSR, MMFAR, BFAR, SFSR, SFAR, EXC_RETURN and the stacked PC) into the faults they record and the checks to make next. For Cortex-M3, M4, M7, M33, M55 and M85. Use it when firmware lands in HardFault, MemManage, BusFault, UsageFault or SecureFault and the register values are known.

输入参数bfarcfsr必填hfsrsfarsfsrmmfarexc_returnstacked_pc

decode_riscv_trap

Decode a RISC-V trap cause

Decodes the mcause value of a 32-bit RISC-V core into the exception or interrupt it names, and says what mepc and mtval hold for that cause and what to check. Use it when a RISC-V microcontroller, such as an ESP32-C3 or a GD32V, stops in its trap handler and the register values are known. It covers the causes of the RISC-V privileged specification, not vendor-specific ones.

输入参数mepcmtvalmcause必填

decode_esp_panic

Decode an ESP-IDF panic

Reads the text an ESP32-family chip prints when ESP-IDF panics and returns the cause, what it means, what to check and the addresses to resolve. Use it when the serial output shows a Guru Meditation Error, an abort(), a task watchdog or interrupt watchdog timeout, a stack overflow or a brown-out. It handles the Xtensa chips and the RISC-V chips. It does not turn addresses into source lines: that needs the ELF file.

输入参数log必填

decode_zephyr_fatal

Decode a Zephyr fatal error

Reads the text Zephyr prints on a fatal error and returns the fault, the thread, the faulting address, what to check and the command that resolves the address. Use it when the console shows "ZEPHYR FATAL ERROR", a fault block such as "***** BUS FAULT *****" or "ASSERTION FAIL". The fault detail lines it reads are those of the Arm Cortex-M port. It does not turn addresses into source lines: that needs the ELF file.

输入参数log必填

lookup_zephyr_kconfig

Look up a Zephyr Kconfig symbol

Returns a Zephyr Kconfig symbol of a release: type, prompt, range, defaults, dependencies, what selects it and its help text. Or searches symbol names and prompts for words. Use it instead of recalling a CONFIG_ name or its meaning from memory, and to find the symbol for a feature. Covers the symbols of Zephyr 3.7, 4.4, 4.5 and of the modules in its manifest. It does not cover symbols that only the nRF Connect SDK or another downstream tree defines.

输入参数searchsymbolversion

check_zephyr_conf

Check a Zephyr prj.conf

Checks the lines of a Zephyr configuration file (prj.conf, a board .conf or an overlay) against the Kconfig symbols of a release: symbols that do not exist, with the closest that do, values of the wrong type or outside the range, and symbols that a file cannot set. Use it after writing or editing a prj.conf, before building. It does not evaluate dependencies or board defaults, so the build can still warn about a symbol whose dependencies are not met.

输入参数conf必填version

lookup_zephyr_binding

Look up a Zephyr devicetree binding

Returns the devicetree binding of a compatible in a Zephyr release: its properties with type, whether required, allowed values and defaults, the bus it sits on, its child nodes and its specifier cells. Use it when writing a devicetree node or overlay, instead of recalling property names from memory. Covers the bindings in the Zephyr tree for 3.7, 4.4, 4.5. Bindings that a module or an application adds are not covered.

输入参数versioncompatible必填

check_freertos_config

Check a FreeRTOSConfig.h

Reads the content of a FreeRTOSConfig.h and reports settings that stop the build, break the kernel at run time or hide errors, with the values it read. Use it when a FreeRTOS project hangs in a critical section, hard-faults at the first context switch, or before trusting a configuration copied from another project. It checks the interrupt priorities of the Cortex-M ports, stack and heap failure detection, the tick settings, software timers and the hooks the application owes. It does not evaluate #if conditions.

输入参数config必填

check_esp_idf_api

Check code against an ESP-IDF release

Finds the ESP-IDF functions, types and headers in a piece of code that do not fit the ESP-IDF release of the project: removed, changed or deprecated by that release, or introduced after it. Each finding names the replacement. Use it on ESP32 code before building, when the code may come from another ESP-IDF major version, for example ESP-IDF 4 driver calls in an ESP-IDF 5 project. The list comes from Espressif's migration guides for ESP-IDF 5.0 to 5.5, so a name outside those guides is not judged.

输入参数code必填idf_version必填

check_build_flags

Check compiler and linker flags

Reads compiler and linker command lines, or the values of CFLAGS and LDFLAGS, and reports what bites on a microcontroller: objects built for different cores or float ABIs, a link line without the core or the float ABI, sections without garbage collection, a build without debug information or without warnings. Use it after writing or changing a Makefile, a CMake toolchain file or the flags of a build. It knows the flags of GCC and Clang and reads the flags only, not the code.

输入参数flags必填

get_platform_pitfalls

Get the traps of a platform or a bus

Returns the traps of one microcontroller family, RTOS, SDK or bus as habits: when something shows up there or before a risky step, what to do, and why. Use it before writing code for a platform or a bus that has not come up in this session, and when a board will not connect, flash or start. Subjects: buses, esp-idf, esp32, freertos, kinetis, nrf-connect, nrf52, pico-sdk, rp2040, samd, stm32, stm32-hal, zephyr. Omit the subject or the topic for the list.

输入参数topicsubject

diagnose_symptom

Diagnose a symptom on hardware

Returns what a firmware engineer does when a board shows a symptom: the order to work in, the suspects in order of likelihood, what to ask the board first, and what each answer means. Use it before changing code for anything seen on hardware: a hang, a reset, a fault that comes and goes, a silent bus, a build that works only with the debugger. With a device, it names the registers to read on that part. Omit the symptom for the list.

输入参数devicesymptom

get_debug_technique

Get a move to observe or shape firmware

Returns how to make firmware show what it does, on the bench or in the code and the build: watch a variable the optimiser removed, time a handler with a pin, keep evidence across a reset, find who corrupts memory, match a wire format, let the compiler forbid a mistake, shrink an image. Each move says what it shows and what it costs. Use it when you need an observation, or a compiler, linker or macro technique, instead of a guess. Omit the goal for the list.

输入参数goal

get_playbook

Get the order of a firmware task

Returns the steps of a firmware task in the order that keeps every step provable: bringing up a new board, writing a driver, an interrupt handler, a watchdog, a firmware update, low power. Use it before starting one of these tasks. Each step says when it is done, and the next one stands on it. Omit the task for the list.

输入参数task

get_break_list

Get the faults to test firmware against

Returns the faults to try on firmware, by area: power, buses, inputs, time, memory and storage, clocks, updates, the watchdog and missing parts, with the order to work through them. Use it to review or test firmware for robustness, one fault at a time. Omit the area for the list.

输入参数area

get_firmware_rules

Get firmware coding rules

Returns coding rules for microcontroller firmware in C, C++ or Rust. Each rule has an id, a habit with its reason, what to look for in review, and the MISRA or CERT rule numbers it relates to. The rules that block a change come first. Use it before writing firmware code, or to review code rule by rule, where a finding can name the id of its rule. Give a context to get only the rules for that kind of code.

输入参数contextlanguage必填

版本历史

1
  1. v3.0.0最新Nov 24, 2026

评分

已满足适用检查项的 83%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证不适用

    托管服务按其提供方的条款使用,因此这里不要求许可证。此检查项不计入百分比。