And when I did not erase any 256KBlock, it is Okay:
pFlashErase(&ssdConfig,
C55_ERASE_MAIN,
lowBlockSelect,
midBlockSelect,
highBlockSelect,
0x00000000);
I have checked the memory, the last 256KBlock is from 0x01540000 to 0x0157FFFF. When I am debugging, it's occupied, so I just cannot erase this block. Is this right? But I can erase left 21 256KBlock.
My linker_flash.ld setting is:
MEMORY
{
flash_rchw : org = 0x00f8c000, len = 0x4
cpu0_reset_vec : org = 0x00f8c000+0x10, len = 0x4
cpu1_reset_vec : org = 0x00f8c000+0x14, len = 0x4
cpu2_reset_vec : org = 0x00f8c000+0x04, len = 0x4
/*m_text : org = FLASH_BASE_ADDR, len = FLASH_SIZE*/
/*m_data : org = SRAM_BASE_ADDR, len = SRAM_SIZE*/
m_text : org = 0x01540000, len = 256k
m_data : org = SRAM_BASE_ADDR, len = SRAM_SIZE
}