AnsweredAssumed Answered

Flashx File system

Question asked by David XY Zhou on Jul 14, 2016
Latest reply on Jul 17, 2016 by Daniel Chen

Hi,

The FlashX banks and bank sizes are defined in the structure:

const FLASHX_FILE_BLOCK _bsp_flashx_file_blocks[] = {

    { "bank0",      BSP_INTERNAL_FLASH_BASE,                                        BSP_INTERNAL_FLASH_BASE + 1 * (BSP_INTERNAL_FLASH_SIZE / 4) - 1 },

    { "bank1",      BSP_INTERNAL_FLASH_BASE + 1 * (BSP_INTERNAL_FLASH_SIZE / 4),    BSP_INTERNAL_FLASH_BASE + 2 * (BSP_INTERNAL_FLASH_SIZE / 4) - 1 },

    { "bank2",      BSP_INTERNAL_FLASH_BASE + 2 * (BSP_INTERNAL_FLASH_SIZE / 4),    BSP_INTERNAL_FLASH_BASE + 3 * (BSP_INTERNAL_FLASH_SIZE / 4) - 1 },

    { "bank3",      BSP_INTERNAL_FLASH_BASE + 3 * (BSP_INTERNAL_FLASH_SIZE / 4),    BSP_INTERNAL_FLASH_BASE + 4 * (BSP_INTERNAL_FLASH_SIZE / 4) - 1 },

// swap file definition according to the default value of BSPCFG_SWAP_INDICATOR_ADDR and sector size

    { "swap0",      BSP_INTERNAL_FLASH_BASE,                                        BSP_INTERNAL_FLASH_BASE + (BSP_INTERNAL_FLASH_SIZE / 2) - (1 + BSP_INTERNAL_FLASH_SECTOR_SIZE) },

    { "swap1",      BSP_INTERNAL_FLASH_BASE + (BSP_INTERNAL_FLASH_SIZE / 2),        BSP_INTERNAL_FLASH_BASE + (BSP_INTERNAL_FLASH_SIZE    ) - (1 + BSP_INTERNAL_FLASH_SECTOR_SIZE) },

// flash space used by application

    { "code",       BSP_INTERNAL_FLASH_BASE,                                        (uint32_t)__FLASHX_START_ADDR - 1 },

// remaining free flash space

    { "",           (uint32_t)__FLASHX_START_ADDR,                                  (uint32_t)__FLASHX_END_ADDR },

    { NULL,         0,                                                              0 }

};

 

My Question is : Do these banks have to be continuously or it can have a GAP with a multiple of flash block size.

 

The reason I ask is that I want to use EEPROM, which shall not be included into FlashX Banks.

 

Thank you,

David Zhou

Outcomes