Write length of intel hex string to upgrade file