]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
Update appmain.c
authorIceman <iceman@iuse.se>
Wed, 7 Feb 2018 11:11:48 +0000 (12:11 +0100)
committerGitHub <noreply@github.com>
Wed, 7 Feb 2018 11:11:48 +0000 (12:11 +0100)
 FIX: start up,MUXSEL_HIPKD(PA19),MUXSEL_LOPKD(PA20) are floating state. Should adapt FPGA image aswell.

armsrc/appmain.c

index 6476892235facc30fbf41a32b9636656ebb59d19..76eda19edcf39ed0a168a3630b6ae73bd4aa2407 100644 (file)
@@ -1408,6 +1408,12 @@ void  __attribute__((noreturn)) AppMain(void)
        // Reset SSC
        AT91C_BASE_SSC->SSC_CR = AT91C_SSC_SWRST;
 
        // 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);
        // Load the FPGA image, which we have stored in our flash.
        // (the HF version by default)
        FpgaDownloadAndGo(FPGA_BITSTREAM_HF);
Impressum, Datenschutz