Expand description
The stable diagnostic codes this slice can reach, one per message.
The ranges are reserved by stage (see the crate docs). A new message gets a new entry here; the numbers are the legacy ones, never renumbered.
Codes are data: the human renderer does not print them.
Constants§
- ALL
- Every code defined in this module, in declaration order.
- ATTR_
UNKNOWN - An attribute no element declares.
- COMPONENT_
INVALID - A recipe component that cannot be built (the recipe’s default code).
Legacy component codes stop at
E0614; this one is free. - COMPONENT_
INVALID_ BUTTON - A
<button>that cannot be built. - COMPONENT_
INVALID_ ENV - A
password="env:NAME"whose variable name is not an identifier. - COMPONENT_
INVALID_ ID - A bus component id that cannot become a Rust identifier.
- COMPONENT_
INVALID_ LED - An
<led>that cannot be built. - COMPONENT_
INVALID_ PASSWORD - A password that is required but missing, or outside 8..=63 characters.
- COMPONENT_
INVALID_ SSID - An
ssidthat is empty or longer than 32 bytes. - COMPONENT_
INVALID_ WIFI - A
<wifi_station>that cannot be built (missing or invalid attribute). - COMPONENT_
OPEN_ WITH_ PASSWORD auth="open"written together with a password.- COMPONENT_
RESERVED_ ID - An id the generated code already binds (
devices,ctx,__x). - COMPONENT_
UNKNOWN_ GPIO - An
<led>referencing a gpio id that does not exist. - COMPONENT_
UNKNOWN_ WIFI - A
<wifi_station wifi>reference to a radio that does not exist. - COMPONENT_
UNSUPPORTED - A component tag no element implements.
- COMPONENT_
WIFI_ RADIO_ USED - A second
<wifi_station>on one<wifi>radio. - COMPONENT_
WRONG_ DIRECTION - A led on an input pin.
- CONFLICT_
DIRECTION - One element needs an input and the other an output.
- CONFLICT_
I2C_ ADDRESS - Two devices on one
<i2c>bus sharing an address. - CONFLICT_
I2C_ WIRING - An
<i2c>that puts sda and scl on one pin. - CONFLICT_
PERIPHERAL - Two elements naming the same hardware peripheral (
UART1). - CONFLICT_
PIN - Two elements of different kinds on one pin.
- CONFLICT_
PIN_ USED - A pin claimed by two elements of the same kind.
- CONFLICT_
RUNTIME_ HELD - A peripheral the generated runtime already holds (
UART0). - CONFLICT_
SPI_ WIRING - An
<spi>that puts two of its pins on one GPIO. - CONFLICT_
UART_ WIRING - A
<uart>that puts tx and rx on one pin. - CORE_
CHIP_ WITHOUT_ TYPE <chip>without atypeattribute.- CORE_
CONSOLE_ WITHOUT_ TYPE <console>without atypeattribute.- CORE_
DUPLICATE_ ELEMENT - The same element is written twice in
# espforge. - CORE_
INCOMPLETE # espforgelacks<project>,<chip>or<runtime>.- CORE_
INVALID_ LOG_ LEVEL <logger>names a level the catalog does not know.- CORE_
INVALID_ ROLLBACK <ota rollback>is nottrueorfalse.- CORE_
RUNTIME_ WITHOUT_ TYPE <runtime>without atypeattribute.- CORE_
UNKNOWN_ CHIP - A chip name the catalog does not know.
- CORE_
UNKNOWN_ CONSOLE - A console name the catalog does not know.
- CORE_
UNKNOWN_ ELEMENT - An element the
# espforgeschema does not know. - CORE_
UNKNOWN_ FLASH_ SIZE <ota flash_size>names a size the catalog does not know.- CORE_
UNKNOWN_ RUNTIME - A runtime name the catalog does not know.
- DEVICE_
BUS_ MODE_ CONFLICT - A blocking-only and an async-only driver bound to one bus.
- DEVICE_
INVALID - A device that cannot be built: a missing or invalid attribute.
- DEVICE_
INVALID_ ID - A device id that cannot become a Rust identifier.
- DEVICE_
REQUIRES_ BLOCKING - A blocking-only display declared under the embassy runtime.
- DEVICE_
RESERVED_ ID - A device id the generated code already binds (
devices,ctx, …). - DEVICE_
UNKNOWN_ COMPONENT - A device’s bus reference to a component that does not exist.
- DEVICE_
UNKNOWN_ GPIO - A device’s auxiliary pin reference to a
<gpio>that does not exist. - DEVICE_
UNSUPPORTED - A device tag no element implements.
- DEVICE_
WRONG_ DIRECTION - A device’s auxiliary pin on a GPIO declared as an input.
- GPIO_
INVALID_ DIRECTION <gpio direction>outsideinput/output.- GPIO_
INVALID_ PIN <gpio pin>that is not a number.- GPIO_
NOT_ ON_ CHIP - A pin number larger than the chip has.
- GPIO_
NOT_ OUTPUT_ CAPABLE - An output claim on an input-only pin.
- GPIO_
RESERVED_ FLASH - A claim on a pin wired to the SPI flash or PSRAM bus.
- GPIO_
STRAPPING - A claim on a strapping pin: the level at boot selects a boot mode.
- I2C_
INVALID_ FREQUENCY - An
<i2c frequency>that is not100kHz-shaped. - I2C_
INVALID_ ID - An
<i2c>id that is noti2c0,i2c1ori2c2. - I2C_
INVALID_ PIN - An
<i2c>pin that is not a GPIO number. - OPTION_
DERIVED - An option value that cannot be set in
<options>. - OPTION_
INVALID_ VALUE - An option value outside its declared choices.
- OPTION_
MUTUALLY_ EXCLUSIVE - Two options in one selection group are on together.
- OPTION_
NO_ CONSOLE - The selected console does not exist on the chip.
- OPTION_
REQUIRES - An option that needs another option that is off.
- OPTION_
UNAVAILABLE - An option that the selected chip cannot provide.
- OPTION_
UNKNOWN - An option name that is not in the schema.
- PERIPHERAL_
UNSUPPORTED - A peripheral tag no element implements.
- PIN_
CAPS_ MISSING - A chip with no pin capability table.
- SERVICE_
BUFFER_ TOO_ SMALL - A service buffer below the minimum its protocol needs.
- SERVICE_
INSECURE_ WARNING <https_client insecure="true">: certificates will not be validated.- SERVICE_
INVALID - A service that cannot be built: a bad id or a missing attribute.
- SERVICE_
REQUIRES_ EMBASSY - A network service declared under the blocking runtime.
- SERVICE_
RESERVED_ ID - A service id the generated code already binds (
services,ctx, …). - SERVICE_
UNKNOWN_ NETWORK - A service
network=reference to an interface that does not exist. - SERVICE_
UNSUPPORTED - A service tag no element implements.
- SPI_
INVALID_ FREQUENCY - An
<spi frequency>that is not100kHz-shaped. - SPI_
INVALID_ ID - An
<spi>id other thanspi2. - SPI_
INVALID_ MODE - An
<spi mode>outside 0..=3. - SPI_
INVALID_ PIN - An
<spi>pin that is not a GPIO number. - STRUCTURE_
DUPLICATE_ SECTION - Two
# sectionblocks with the same name. - STRUCTURE_
MISSING_ SECTION - A required
# sectionblock is absent. - STRUCTURE_
UNKNOWN_ SECTION - A section outside the four-section grammar.
- SYNTAX_
NODE_ LINE - A parser-junk line that is not a node.
- SYNTAX_
SECTION_ HEADER - A line that should have been a
# sectionheader. - UART_
INVALID_ BAUD <uart baud_rate="0">.- UART_
INVALID_ ID - A
<uart>id that is notuart0..uart3. - UART_
INVALID_ PERIPHERAL - A
<uart uart=>value outsideUART0..UART3. - UART_
INVALID_ PIN - A
<uart>pin that is not a GPIO number. - VALUE_
KEY_ KIND - A key used both as a plain value and as an object.
- VALUE_
MISSING_ ATTRIBUTE - A required attribute is absent.
- VALUE_
NOT_ BOOLEAN - A value that should be a boolean.
- VALUE_
NOT_ NUMBER - A value that should be an unsigned number.
- VALUE_
WRONG_ TYPE - An attribute value with the wrong type.
- WIFI_
INVALID_ ID - A
<wifi>whose id is missing or malformed. - WIFI_
NO_ RADIO - A
<wifi>on a chip with no Wi-Fi radio.