iso15sim: init earlier to prevent other FPGA loading issue
This commit is contained in:
1 parent
fbbfa0c356
commit
f4d4e975ee
1 file changed
+3
-2
+3
-2
@@ -2130,6 +2130,9 @@ void SimTagIso15693(uint8_t *uid, uint8_t block_size) {
|
|||||||
|
|
||||||
// free eventually allocated BigBuf memory
|
// free eventually allocated BigBuf memory
|
||||||
BigBuf_free_keep_EM();
|
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();
|
iso15_tag_t *tag = (iso15_tag_t *) BigBuf_get_EM_addr();
|
||||||
if (tag == NULL) {
|
if (tag == NULL) {
|
||||||
@@ -2176,8 +2179,6 @@ void SimTagIso15693(uint8_t *uid, uint8_t block_size) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Iso15693InitTag();
|
|
||||||
|
|
||||||
LED_A_ON();
|
LED_A_ON();
|
||||||
|
|
||||||
if (g_dbglevel >= DBG_DEBUG) {
|
if (g_dbglevel >= DBG_DEBUG) {
|
||||||
|
|||||||
Reference in new issue
Block a user