FSMC in synchrnous mode
Hello,
I would like to configure the STM32F2 FSMC in synchronous/burst mode to the FPGA (Xynergy kit), but all the examples are using asynchronous. The ST Reference manual is also unclear which configuration should be used.
I have an FPGA firmware to work in synchronous mode now, but STM32 configuration for this mode is unclear.
Does anyone successfully configure the FSMC in synchronous mode yet? Can you provide some guides/examples?
Thank you and Best regards,
Huy
Updated on Dec 29, 2011: we are using Xynergy kit.
I managed to get synchronous burst mode to work on Xynergy. uh.
with FSMC_CLK = 2 HCLK cycles, throughput for write is about 32MBytes/s.
Dear Kimmoli,
It is very encouraging to hear that someone did succeed in making it work in synchronous mode.
Are you able to share your code to configure the STM32F207 (on Xynergy board) in synchronous mode? I appreciate it alot!
Thanks in advance.
Huy
I'm using Keil µVision as IDE, and used demonstration project Blinky as template.
Attached file contains function SystemInit_ExtMemCtl which i did modify.
Uncomment this line:
#define DATA_IN_ExtSRAM
I added following pins
PD3 <-> FSMC_CLK
PD6 <-> FSMC_NWAIT
PB7 <-> FSMC_NL (NADVL)
And then enabled CBURSTRW, BURSTEN, set CLKDIV=1
I had some issues initializing GPIOB as something overwrites those settings, and i had to reconfigure it at later time (didn't have time to look what overwrites)
This was a quick test just to see that it can be done. I can share my vhdl code also if interested.
Here is the vhdl and ucf used in my quick test.
this generates small block ram inside fpga, which is accessible for read and write.

