Flashx File system

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,147件の閲覧回数
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 件の賞賛
返信
1 解決策
928件の閲覧回数
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 件の賞賛
返信
1 返信
929件の閲覧回数
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 件の賞賛
返信