diff --git a/armsrc/iso15693.c b/armsrc/iso15693.c index b7c07e0ea..bd2d1c345 100644 --- a/armsrc/iso15693.c +++ b/armsrc/iso15693.c @@ -2130,6 +2130,9 @@ void SimTagIso15693(uint8_t *uid, uint8_t block_size) { // free eventually allocated BigBuf memory BigBuf_free_keep_EM(); + // Init early to be sure FPGA is loaded before any EML operation + // usefull when eml memory is empty (UID supplied) + Iso15693InitTag(); // to be sure FPGA is loaded before any EML operation iso15_tag_t *tag = (iso15_tag_t *) BigBuf_get_EM_addr(); if (tag == NULL) { @@ -2176,8 +2179,6 @@ void SimTagIso15693(uint8_t *uid, uint8_t block_size) { return; } - Iso15693InitTag(); - LED_A_ON(); if (g_dbglevel >= DBG_DEBUG) {