Check register and field names
check_registersChecks 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.
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>",
"names": "<names>"
},
"name": "check_registers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| names | Yes | The names as the code has them: USART1->BRR, RCC->APB2ENR.USART1EN, RCC_APB2ENR_USART1EN, GPIOA->MODER, P0->PIN_CNF[3], TCCR1B, CS12. | |
| device | Yes | The part, for example STM32F407VGT6, stm32g431, nrf52840 or esp32c3. |