From: Iceman Date: Wed, 7 Feb 2018 11:11:48 +0000 (+0100) Subject: Update appmain.c X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/0ac47a5a22887dcd7679e0ca85c2cac31494dbe1 Update appmain.c FIX: start up,MUXSEL_HIPKD(PA19),MUXSEL_LOPKD(PA20) are floating state. Should adapt FPGA image aswell. --- diff --git a/armsrc/appmain.c b/armsrc/appmain.c index 64768922..76eda19e 100644 --- a/armsrc/appmain.c +++ b/armsrc/appmain.c @@ -1408,6 +1408,12 @@ void __attribute__((noreturn)) AppMain(void) // Reset SSC AT91C_BASE_SSC->SSC_CR = AT91C_SSC_SWRST; + // set pins LOW + LOW(GPIO_MUXSEL_HIPKD); + LOW(GPIO_MUXSEL_LOPKD); + LOW(GPIO_MUXSEL_HIRAW); + LOW(GPIO_MUXSEL_LORAW); + // Load the FPGA image, which we have stored in our flash. // (the HF version by default) FpgaDownloadAndGo(FPGA_BITSTREAM_HF);