FSMC_DEVICE.PageSize = 512;
FSMC_DEVICE.BlockNbr = 1; // total blocks
FSMC_DEVICE.BlockSize = 512; // measured in number of pages
FSMC_DEVICE.PlaneSize = 1; // measured in number of blocks
FSMC_DEVICE.PlaneNbr = 1; // total planes
FSMC_DEVICE.SpareAreaSize = 0; // no spare memory
FSMC_DEVICE.ExtraCommandEnable = DISABLE;