From 28598e80c0dc57997731d9af96be7cb85db7c60a Mon Sep 17 00:00:00 2001 From: marshmellow42 Date: Sat, 25 Mar 2017 07:49:53 -0400 Subject: [PATCH 1/1] hitag sim fix from https://github.com/iceman1001/proxmark3/commit/e1778858ddc53a6a82e8ee24f02e6b673687f69a and http://www.proxmark.org/forum/viewtopic.php?pid=26733#p26733 sim mode should not have the reader field on. --- armsrc/hitag2.c | 2 +- armsrc/hitagS.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/armsrc/hitag2.c b/armsrc/hitag2.c index 6a072bf4..dd0211da 100644 --- a/armsrc/hitag2.c +++ b/armsrc/hitag2.c @@ -993,7 +993,7 @@ void SimulateHitagTag(bool tag_mem_supplied, byte_t* data) { // Set up simulator mode, frequency divisor which will drive the FPGA // and analog mux selection. - FpgaWriteConfWord(FPGA_MAJOR_MODE_LF_EDGE_DETECT | FPGA_LF_EDGE_DETECT_READER_FIELD); + FpgaWriteConfWord(FPGA_MAJOR_MODE_LF_EDGE_DETECT); FpgaSendCommand(FPGA_CMD_SET_DIVISOR, 95); //125Khz SetAdcMuxFor(GPIO_MUXSEL_LOPKD); RELAY_OFF(); diff --git a/armsrc/hitagS.c b/armsrc/hitagS.c index 58e09a45..dc2281b9 100644 --- a/armsrc/hitagS.c +++ b/armsrc/hitagS.c @@ -1023,8 +1023,7 @@ void SimulateHitagSTag(bool tag_mem_supplied, byte_t* data) { // Set up simulator mode, frequency divisor which will drive the FPGA // and analog mux selection. FpgaDownloadAndGo(FPGA_BITSTREAM_LF); - FpgaWriteConfWord( - FPGA_MAJOR_MODE_LF_EDGE_DETECT | FPGA_LF_EDGE_DETECT_READER_FIELD); + FpgaWriteConfWord(FPGA_MAJOR_MODE_LF_EDGE_DETECT); FpgaSendCommand(FPGA_CMD_SET_DIVISOR, 95); //125Khz SetAdcMuxFor(GPIO_MUXSEL_LOPKD); RELAY_OFF(); -- 2.39.5