Flashx File system

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Flashx File system

Jump to solution
587 Views
davidzhou
Contributor V

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

0 Kudos
1 Solution
368 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi David:

Note from MQX_IO_User_Guide:  The blocks do not have to  follow each other, so a space between blocks is acceptable. It is required that the blocks do not intersect and that they are listed in ascending order in the array by their starting address. Yes , it can have a gap, you can have a try.

Have a nice day!

Regards

Daniel

View solution in original post

0 Kudos
1 Reply
369 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi David:

Note from MQX_IO_User_Guide:  The blocks do not have to  follow each other, so a space between blocks is acceptable. It is required that the blocks do not intersect and that they are listed in ascending order in the array by their starting address. Yes , it can have a gap, you can have a try.

Have a nice day!

Regards

Daniel

0 Kudos