cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 Discovery FSMC Problem

Posted on January 12, 2016 at 14:06

The original post was too long to process during our migration. Please click on the attachment to read the original post.
14 REPLIES 14
Posted on January 13, 2016 at 00:05

Are you able to toggle the clock pin ''manually'' if you set it  GPIO Output?

JW
Posted on January 13, 2016 at 09:02

Thanks. Yes it is working when it is output.

Posted on January 13, 2016 at 17:16

When I initialize the FSMC_NORSRAMInitTypedefStruct fsmc with FSMC_NORSRAMStructInit function, just the frequency of noise is changing. Signal isn't resolving correctly. I've added scope output. I'mreally confused. I'm going towatch signals with differentoscilloscope.

________________

Attachments :

20160113-0002_04.bmp : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0mv&d=%2Fa%2F0X0000000bdf%2FFsbGx_hsQmODTJtdV8n5GG3GYLMvrn4yKT0Utm7khLs&asPdf=false
Posted on January 13, 2016 at 17:57

I never used any of the synchronous modes. Honestly I don't understand, why would you need one in your case.

Nevertheless, for further discussion, post the relevant GPIO and FMC registers content. What chip are we talking about and what are its connections on the pins in question?

JW
Posted on January 13, 2016 at 22:12

It's not a device yet. I'm just trying to correct the clock signal and it's frequency with osciloscope. But I'll use it with a system it's not a memory device which has 16-bit data, clock and latch input. I think I must use synchronous communication. I need to go up 40MHz (+/-  10MHz). I'm at home now I'm going to send register contents tomorrow morning.

Posted on January 14, 2016 at 15:00

Here is the FSMC, GPIOD and GPIOE registers and their contents.

0690X00000605KUQAY.png

Posted on January 14, 2016 at 16:40

While I wrote ''post register content'', I meant ''look at the registers content and think yourself'' 🙂

FSMC_BTR1 is uninitialized.

I don't ''speak'' SPL nor Cube, but I suspect what you did is not the proper way how the FSMC should be initialized.

JW

Posted on January 14, 2016 at 17:42

Thanks again Jack. Can you give some advice that how to properly initialize the fsmc?

Posted on January 16, 2016 at 10:55

I've wrote the settings without SPL now I can get clk signal in acceptable voltage range. But this time waveform is not square wave probably oscilloscope has some issues.