AnsweredAssumed Answered

Error fsmc stm32f4discovery

Question asked by msn on Jul 1, 2012
Latest reply on Jul 4, 2012 by zaurozavr

Hi, everyone.

I'm testing on fsmc stm32f407VG.
I use the Address / Data multiplexed on databus (MUXEN = 1).
2 modes of testing EXTMOD = 0 and 1.

Initialization:
  FSMC_Bank1->BTCR[0] = //FSMC_BCR2_EXTMOD |
                        FSMC_BCR2_WREN   |
                        FSMC_BCR2_FACCEN |
                        FSMC_BCR2_MWID_0 |
                        FSMC_BCR2_MTYP_1 |
                        FSMC_BCR2_MUXEN  |
                        FSMC_BCR2_MBKEN;
                        
  FSMC_Bank1->BTCR[1]  = (2 << 8) |                 // DATAST = 2
                         (1 << 4) |                 // ADDHLD = 1
                         (2 << 0);                  // ADDSET = 2
 
  FSMC_Bank1E->BWTR[0] = (2 << 8) |                 // DATAST = 2
                         (1 << 4) |                 // ADDHLD = 1
                         (2 << 0);                  // ADDSET = 2  


If EXTMOD = 0, so good.
If EXTMOD = 1, FSMC does not generate NL (NADV) and address (an error when writing and reading).

In what may be the problem?
This is a bug stm32f407VG?

Outcomes