cancel
Showing results for 
Search instead for 
Did you mean: 

How to brust write by using FSMC?

snkparty1
Associate III

I am trying to send data from STM32 to the FPGA by using FSMC.

My goal is to send data as fast as possible so I set FMC clock to be maximum speed and set sram clock cycles to be as low as possibe.

clock.png

FSMC setting.png

I use FPGA internal Logic Analyzer to capture data from FSMC and the result is shown as below.

sram send data.png

code.png

I found that the data was sent one by one instead of burst mode(send data continuously) and the speed was well below requirement... I want to know how to use burst mode in FSMC?(Since I am using an FPGA to receive data so any mode is ok(PSRAM, SRAM, SDRAM, nano flash, etc)) 

1 ACCEPTED SOLUTION

Accepted Solutions
KDJEM.1
ST Employee

Hello @snkparty1;

 

According the reference manual RM0090 section "36.1 FSMC main features",  the FMSC supports burst mode access to synchronous devices (NOR flash and PSRAM).

 

KDJEM1_0-1758795535339.png

You can select a burst write in STM32CubeMX configuration.

KDJEM1_1-1758795654865.png

Thank you.

Kaouthar

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
KDJEM.1
ST Employee

Hello @snkparty1;

 

According the reference manual RM0090 section "36.1 FSMC main features",  the FMSC supports burst mode access to synchronous devices (NOR flash and PSRAM).

 

KDJEM1_0-1758795535339.png

You can select a burst write in STM32CubeMX configuration.

KDJEM1_1-1758795654865.png

Thank you.

Kaouthar

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

mƎALLEm
ST Employee

Hello @snkparty1 ,

Apart what @KDJEM.1 said, and according to this thread and this thread: "I tried this on an STM32F429 and the test was successful" it seems you solved the issue. Could you please confirm? and provide the solution?

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Sorry, I forgot this topic. Yes, PSRAM has burst mode. I accepted his answer as the solution. Thanks