Skip to main content
valerio2
Associate III
April 19, 2016
Question

Possible wrong configuration for FMC with Cube

  • April 19, 2016
  • 2 replies
  • 698 views
Posted on April 19, 2016 at 12:26

Hi,

I am reading the RM0090 about the FMC configuration since I want to interface an stm32f427 with a SRAM through the FMC controller. At some point in the manual it is reported a figure that represents the memory arrangement (fig. 455). According to the picture the first bank is meant for SRAM but when I carry out the configuration through Cube, it sets hsram1.Init.NSBank = FMC_NORSRAM_BANK2; where hsram1 is the handle to the FMC peripheral, and I am a little bit confused. Is this a bug or am I missing something?

Thank you and regards.

    This topic has been closed for replies.

    2 replies

    Nesrine M_O
    Associate
    April 19, 2016
    Posted on April 19, 2016 at 14:42

    Hi thy,

    FMC Bank 1 used to address up to 4 NOR Flash memory or PSRAM devices. This bank is split into 4 NOR/PSRAM sub banks with 4 dedicated Chip Selects (FMC_NEx), as follows:

    • Bank 1 - NOR/PSRAM 1 // hsram1.Init.NSBank = FMC_NORSRAM_BANK1;

    • Bank 1 - NOR/PSRAM 2 // hsram1.Init.NSBank = FMC_NORSRAM_BANK2;

    • Bank 1 - NOR/PSRAM 3

    • Bank 1 - NOR/PSRAM 4

    -Syrine-

    valerio2
    valerio2Author
    Associate III
    April 19, 2016
    Posted on April 19, 2016 at 15:29

    Ok, so the numbering refers to the subbank number.

    Thank you.