cancel
Showing results for 
Search instead for 
Did you mean: 

We have SRAM FSMC configuration code available for STM322xG in cubeF2, I want to implement Muxed NOR with the help of same code

Pranay Dhuri
Associate II
Posted on April 15, 2017 at 13:55

Hi,

As the title I want to implement Muxed NOR on STM32F207ZG Nucleo board

following is SRAM read write code.

for (uwIndex = 0; uwIndex < BUFFER_SIZE; uwIndex++)

{

*(__IO uint16_t*) (SRAM_BANK_ADDR + WRITE_READ_ADDR + 2*uwIndex) = aTxBuffer[uwIndex];

}

/* Read back data from the SRAM memory */

for (uwIndex = 0; uwIndex < BUFFER_SIZE; uwIndex++)

{

aRxBuffer[uwIndex] = *(__IO uint16_t*) (SRAM_BANK_ADDR + WRITE_READ_ADDR + 2*uwIndex);

}

so for muxed NOR how we will be defining the address and data as it has common address and data lines?

where the control signals are being set? 

1 REPLY 1
Posted on April 15, 2017 at 17:43

That would be a function of the FSMC, you'd need to configure that correctly, and then as you access addresses within the ARM address space these are translated to the signal/sequences on the external bus.

As I recall there are 4x 64MB regions within the 0x60000000..0x6FFFFFFF address space that fall under the control of the FSMC

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..