Skip to main content
Kasapoglu.Orkun
Senior
January 12, 2016
Question

STM32F4 Discovery FSMC Problem

  • January 12, 2016
  • 14 replies
  • 3091 views
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.
    This topic has been closed for replies.

    14 replies

    waclawek.jan
    Super User
    January 12, 2016
    Posted on January 13, 2016 at 00:05

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

    JW
    Kasapoglu.Orkun
    Senior
    January 13, 2016
    Posted on January 13, 2016 at 09:02

    Thanks. Yes it is working when it is output.

    Kasapoglu.Orkun
    Senior
    January 13, 2016
    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
    waclawek.jan
    Super User
    January 13, 2016
    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
    Kasapoglu.Orkun
    Senior
    January 13, 2016
    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.

    Kasapoglu.Orkun
    Senior
    January 14, 2016
    Posted on January 14, 2016 at 15:00

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

    0690X00000605KUQAY.png

    waclawek.jan
    Super User
    January 14, 2016
    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

    Kasapoglu.Orkun
    Senior
    January 14, 2016
    Posted on January 14, 2016 at 17:42

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

    Kasapoglu.Orkun
    Senior
    January 16, 2016
    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.

    Kasapoglu.Orkun
    Senior
    January 20, 2016
    Posted on January 20, 2016 at 14:45

    Does STM32F429I-Discovery board's ISSI SDRAM work with sinusoideal clock pulse on SDCLK pin?