[refactor] update to flash_erase_read_write.c to adapt new flash algo for freescale devices. Other random comments made