Look up a register or bit field
lookup_registerReturns 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"device": "<device>",
"name": "<name>"
},
"name": "lookup_register"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | What to look up: a register (USART1->BRR), a field (RCC->APB2ENR.USART1EN or RCC_APB2ENR_USART1EN), a peripheral alone (GPIOA) to list its registers, an address (0x40011008), or a register or a bit that the code names alone (TCCR1B, CS12). | |
| device | Yes | The part, for example STM32F407VGT6, stm32g431, nrf52840 or esp32c3. |