cancel
Showing results for 
Search instead for 
Did you mean: 

Possible wrong configuration for FMC with Cube

valerio2
Associate II
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.

2 REPLIES 2
Nesrine M_O
Lead II
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
Associate II
Posted on April 19, 2016 at 15:29

Ok, so the numbering refers to the subbank number.

Thank you.