AnsweredAssumed Answered

fsmc configuration for multiplexed memory

Question asked by sam.sam on Jun 8, 2012
Latest reply on Jul 1, 2012 by zaurozavr
Hello all,

I am using stm32f217 on my target board. it has a mutiplexed 8MB psram. My problem is my one 16bit write changes the value written by previous 16bit write.
write_ram16(0,0xaaaa)-->16 bit write at offset 0, base add 0x60000000
write_ram16(2,0xf000)
read_ram16(2) --> returns 0xf000
read_ram16(0) -->returns 1

my fsmc config is
FSMC_Bank1->BCR1 = (FSMC_BCR_MBKEN | //bank enable
                                         FSMC_BCR_MTYP_PSRAM | //memory is psram
                                         FSMC_BCR_MWID_16BITS |//16bit wide
                                         FSMC_BCR_WREN |  //write enable
                                         FSMC_BCR_MUXEN); //mux enable

FSMC_Bank1->BTR1 =  0x00010401; //DataSetupTime = 4, BusTurnAroundDuration = 1, add setup=1

Outcomes