[Cryptech-Commits] [sw/stm32] 02/02: New FMC settings for STM32.

git at cryptech.is git at cryptech.is
Tue Jan 21 08:42:49 UTC 2020


This is an automated email from the git hooks/post-receive script.

meisterpaul1 at yandex.ru pushed a commit to branch fmc_clk
in repository sw/stm32.

commit 723766c08127d3f489d90ea94bc090d9481bbebb
Author: Pavel V. Shatov (Meister) <meisterpaul1 at yandex.ru>
AuthorDate: Tue Jan 21 11:41:07 2020 +0300

    New FMC settings for STM32.
---
 stm-fmc.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/stm-fmc.c b/stm-fmc.c
index 62b6433..b5e79e8 100644
--- a/stm-fmc.c
+++ b/stm-fmc.c
@@ -149,14 +149,14 @@ void fmc_init(void)
     // don't care in sync mode
     fmc_timing.DataSetupTime = 255;
 
-    // not needed, since nwait will be polled manually
+    // not needed
     fmc_timing.BusTurnAroundDuration = 0;
 
     // use 45 MHz to match what FMC arbiter in the FPGA expects
-    fmc_timing.CLKDivision = 4;
+    fmc_timing.CLKDivision = 4;	// 180/4
 
-    // use 4 to match what FMC arbiter in the FPGA expects
-    fmc_timing.DataLatency = 4;
+    // use 6 to match what FMC arbiter in the FPGA expects
+    fmc_timing.DataLatency = 6;
 
     // don't care in sync mode
     fmc_timing.AccessMode = FMC_ACCESS_MODE_A;



More information about the Commits mailing list