Skip to main content
phani
Associate II
February 20, 2009
Question

Address space for SPI Flash

  • February 20, 2009
  • 1 reply
  • 673 views
Posted on February 20, 2009 at 13:34

Address space for SPI Flash

    This topic has been closed for replies.

    1 reply

    phani
    phaniAuthor
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:03

    Hi,

    I need to access a 128Mbit SPI Flash interfaced to STM32F101VCT6. What is the address range that I have to use for this device. I have looked up the Memory map for the MCU and it talks about only the ''control and status register'' part only.

    In the memory map 0x800 0000 to 0x807 FFFF is reserved for Flash. Am I suppose to take the next available address for this location ?

    I am basically trying to fill out this data structure

    #include ''..\FlashOS.H'' // FlashOS Structures

    #ifdef STM32F10x_128

    struct FlashDevice const FlashDevice = {

    FLASH_DRV_VERS, // Driver Version, do not modify!

    ''STM32F10x 128kB Flash'', // Device Name

    ONCHIP, // Device Type

    0x08000000, // Device Start Address

    0x00020000, // Device Size in Bytes (128kB)

    1024, // Programming Page Size

    0, // Reserved, must be 0

    0xFF, // Initial Content of Erased Memory

    100, // Program Page Timeout 100 mSec

    500, // Erase Sector Timeout 500 mSec

    // Specify Size and Address of Sectors

    0x0400, 0x000000, // Sector Size 1kB (128 Sectors)

    SECTOR_END

    };

    #endif