Struct mimxrt500_hal::bootrom::FlexSpiNorFlashConfig
source · #[repr(C)]pub struct FlexSpiNorFlashConfig {Show 14 fields
pub mem_config: FlexSpiMemConfig,
pub page_size: u32,
pub sector_size: u32,
pub ip_cmd_serial_clk_freq: u8,
pub is_uniform_block_size: u8,
pub is_data_order_swapped: u8,
pub reserved0: [u8; 1],
pub serial_nor_type: u8,
pub need_exit_no_cmd_mode: u8,
pub half_clk_for_non_read_cmd: u8,
pub need_restore_no_cmd_mode: u8,
pub block_size: u32,
pub flash_state_ctx: u32,
pub reserved2: [u32; 10],
}Expand description
Describes the shape of the flash configuration header that the Boot ROM expects to find at offset 0x0400 in the flash memory connected to FlexSPI0, if booting from that device.
The board support package for a board that boots from flash memory on FlexSPI0 should arrange for a suitable value of this type to be placed at 0x0400 in the flash image (0x08000400 if the Flash will be memory mapped) and then the on-chip Boot ROM will retrieve it during boot.
See i.MX RT500 Reference Manual section 18.6.1.2: FlexSPI NOR Configuration Block(FCB).
Fields§
§mem_config: FlexSpiMemConfigCommon memory configuration info via FlexSPI.
page_size: u32Page size of serial NOR.
sector_size: u32Sector size of serial NOR.
ip_cmd_serial_clk_freq: u8Clock frequency for IP command.
is_uniform_block_size: u8Sector/block size is the same.
is_data_order_swapped: u8Data order (D0, D1, D2, D3) is swapped (D1, D0, D3, D2).
reserved0: [u8; 1]Reserved for future use.
serial_nor_type: u8Serial NOR flash type: 0/1/2/3.
need_exit_no_cmd_mode: u8Need to exit NoCmd mode before other IP command.
half_clk_for_non_read_cmd: u8Half the Serial Clock for non-read command: true/false.
need_restore_no_cmd_mode: u8Need to Restore NoCmd mode after IP commmand execution.
block_size: u32Block size.
flash_state_ctx: u32Flash state context.
reserved2: [u32; 10]Reserved for future use.
Trait Implementations§
source§impl Clone for FlexSpiNorFlashConfig
impl Clone for FlexSpiNorFlashConfig
source§fn clone(&self) -> FlexSpiNorFlashConfig
fn clone(&self) -> FlexSpiNorFlashConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more