cancel
Showing results for 
Search instead for 
Did you mean: 

access to external NOR flash and external SRAM

stm322
Associate II
Posted on November 11, 2008 at 06:06

access to external NOR flash and external SRAM

3 REPLIES 3
stm322
Associate II
Posted on May 17, 2011 at 12:51

Hello,

On a STM32, is it possible to access an external NOR flash on bank 1 address 0x64000000 and an external SRAM on bank 1 address 0x68000000 without to have to reconfigure the FSMC everytime I want to access one of the memories.

Let's say I want to copy data byte per byte from the external NOR flash to the external SRAM.

Do I have to configure FMSC to read one byte in external Flash, then reconfigure FSMC to write the byte in external SRAM, then reconfigure FSMC to read the next byte in external Flash and carry on ......

Or can I just configure only once the FSMC to read any time the external Flash and write any time the external SRAM?

Thanks

tibo
Associate II
Posted on May 17, 2011 at 12:51

there is one register set for each memory device, so you have to program the FSMC

controller only once. The mapping: memory address -> chip select -> address of register

set is hard-wired (see RM0008 page 368 (table 66) and page 393).

stm322
Associate II
Posted on May 17, 2011 at 12:51

understood

thank you.