PDK API Guide for J721E
Board_FlashInfo Struct Reference

Detailed Description

This structure contains information about the flash device on the board.

    The bblist points to an array of bytes where each position represents a
    block on the device. If the block is good it is marked as 0xFF. If the block
    is bad, it is marked as 0x00. For devices that do not support a bad block list this
    value will be NULL. The number of blocks in the bblist is determined by the block_count field.

Data Fields

uint32_t flashHandle
 
int32_t manufacturer_id
 
int32_t device_id
 
Board_flashType type
 
int32_t width
 
int32_t block_count
 
int32_t page_count
 
int32_t page_size
 
int32_t spare_size
 
int32_t bboffset
 
uint32_t column
 
uint8_t * bblist
 
uint32_t sector_size
 
bool blkErase_flag
 

Field Documentation

◆ flashHandle

uint32_t Board_FlashInfo::flashHandle

Handle to the flash interface as returned by flash init function

◆ manufacturer_id

int32_t Board_FlashInfo::manufacturer_id

manufacturer ID

◆ device_id

int32_t Board_FlashInfo::device_id

Manufacturers device ID

◆ type

Board_flashType Board_FlashInfo::type

Type of device

◆ width

int32_t Board_FlashInfo::width

Width in bits

◆ block_count

int32_t Board_FlashInfo::block_count

Total blocks. First block starts at 0.

◆ page_count

int32_t Board_FlashInfo::page_count

Page count per block

◆ page_size

int32_t Board_FlashInfo::page_size

Number of bytes in a page

◆ spare_size

int32_t Board_FlashInfo::spare_size

Spare area size in bytes

◆ bboffset

int32_t Board_FlashInfo::bboffset

Offset into spare area to check for a bad block

◆ column

uint32_t Board_FlashInfo::column

Column for a NAND device

◆ bblist

uint8_t* Board_FlashInfo::bblist

◆ sector_size

uint32_t Board_FlashInfo::sector_size

<Bad Block list or NULL if device does not support one Number of bytes in a sector

◆ blkErase_flag

bool Board_FlashInfo::blkErase_flag

Flag to be set false for Sector Erase and true for Block Erase