From 0ac47a5a22887dcd7679e0ca85c2cac31494dbe1 Mon Sep 17 00:00:00 2001 From: Iceman Date: Wed, 7 Feb 2018 12:11:48 +0100 Subject: [PATCH] Update appmain.c FIX: start up,MUXSEL_HIPKD(PA19),MUXSEL_LOPKD(PA20) are floating state. Should adapt FPGA image aswell. --- armsrc/appmain.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- 2.39.2