fix cpu stall issue by uart driver
update for new flash chip support