Why not just use a bootLoader? That way you can update the firmware via. the rs232 connection.