changed BOARD_FLASH_BLOCK_SIZE from 512 to 1024