3、if ( ((g_FlashDeviceType == L18) || (g_FlashDeviceType == L30) || (g_FlashDeviceType == P30)) && (num_l3_blocks_erased > 0) )
{ // We need to take care of the first 16K blocks if there are any
pFlash += (L3_BLOCK_SIZE / 2);
num_l3_blocks_erased--;
}
else
{pFlash += (BLOCK_SIZE / 2); //为什么除2,每个BLOCK是128K,应该pFlash += BLOCK_SIZE??
}
除2还是除4要看你的pFlash是怎么定义的