check if firmware is trx and is not too big, before unlocking/erasing/writing anything