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。

  • 授權條款不適用

    託管服務按其提供方的條款使用,因此這裡不要求授權條款。此檢查項不計入百分比。