Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
rboot_config Struct Reference

Structure containing rBoot configuration. More...

#include <rboot.h>

Public Attributes

uint8 magic
 Our magic, identifies rBoot configuration - should be BOOT_CONFIG_MAGIC. More...
 
uint8 version
 Version of configuration structure - should be BOOT_CONFIG_VERSION. More...
 
uint8 mode
 Boot loader mode (MODE_STANDARD | MODE_GPIO_ROM | MODE_GPIO_SKIP) More...
 
uint8 current_rom
 Currently selected ROM (will be used for next standard boot) More...
 
uint8 gpio_rom
 ROM to use for GPIO boot (hardware switch) with mode set to MODE_GPIO_ROM. More...
 
uint8 count
 Quantity of ROMs available to boot. More...
 
uint8 unused [2]
 Padding (not used) More...
 
uint32 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

uint8 rboot_config::count

Quantity of ROMs available to boot.

uint8 rboot_config::current_rom

Currently selected ROM (will be used for next standard boot)

uint8 rboot_config::gpio_rom

ROM to use for GPIO boot (hardware switch) with mode set to MODE_GPIO_ROM.

uint8 rboot_config::magic

Our magic, identifies rBoot configuration - should be BOOT_CONFIG_MAGIC.

uint8 rboot_config::mode

Boot loader mode (MODE_STANDARD | MODE_GPIO_ROM | MODE_GPIO_SKIP)

uint32 rboot_config::roms[MAX_ROMS]

Flash addresses of each ROM.

uint8 rboot_config::unused[2]

Padding (not used)

uint8 rboot_config::version

Version of configuration structure - should be BOOT_CONFIG_VERSION.