check if firmware is in trx format, before writing it to the flash