rboot_config Struct Reference
Structure containing rBoot configuration. More...
#include <rboot.h>
Collaboration diagram for rboot_config:
Public Attributes | |
| uint8_t | magic |
| Our magic, identifies rBoot configuration - should be BOOT_CONFIG_MAGIC. More... | |
| uint8_t | version |
| Version of configuration structure - should be BOOT_CONFIG_VERSION. More... | |
| uint8_t | mode |
| Boot loader mode (MODE_STANDARD | MODE_GPIO_ROM | MODE_GPIO_SKIP) More... | |
| uint8_t | current_rom |
| Currently selected ROM (will be used for next standard boot) More... | |
| uint8_t | gpio_rom |
| ROM to use for GPIO boot (hardware switch) with mode set to MODE_GPIO_ROM. More... | |
| uint8_t | count |
| Quantity of ROMs available to boot. More... | |
| uint8_t | unused [2] |
| Padding (not used) More... | |
| uint32_t | roms [MAX_ROMS] |
| Flash addresses of each ROM. More... | |
Detailed Description
Structure containing rBoot configuration.
- Note
- ROM addresses must be multiples of 0x1000 (flash sector aligned). Without BOOT_BIG_FLASH only the first 8Mbit (1MB) of the chip will be memory mapped so ROM slots containing .irom0.text sections must remain below 0x100000. Slots beyond this will only be accessible via spi read calls, so use these for stored resources, not code. With BOOT_BIG_FLASH the flash will be mapped in chunks of 8MBit (1MB), so ROMs can be anywhere, but must not straddle two 8MBit (1MB) blocks.
Member Data Documentation
◆ count
| uint8_t rboot_config::count |
Quantity of ROMs available to boot.
◆ current_rom
| uint8_t rboot_config::current_rom |
Currently selected ROM (will be used for next standard boot)
◆ gpio_rom
| uint8_t rboot_config::gpio_rom |
ROM to use for GPIO boot (hardware switch) with mode set to MODE_GPIO_ROM.
◆ magic
| uint8_t rboot_config::magic |
Our magic, identifies rBoot configuration - should be BOOT_CONFIG_MAGIC.
◆ mode
| uint8_t rboot_config::mode |
Boot loader mode (MODE_STANDARD | MODE_GPIO_ROM | MODE_GPIO_SKIP)
◆ roms
| uint32_t rboot_config::roms[MAX_ROMS] |
Flash addresses of each ROM.
◆ unused
| uint8_t rboot_config::unused[2] |
Padding (not used)
◆ version
| uint8_t rboot_config::version |
Version of configuration structure - should be BOOT_CONFIG_VERSION.
The documentation for this struct was generated from the following file:
1.8.17