Post Go back to editing

How is memory mapped access to flash space controlled between SPI2 and OSPI ?

How is memory mapped access to flash space controlled between SPI2 and OSPI ?

Parents
  • Since both SPI2 and OSPI controllers can accesses the flash space(0x6000_0000 – 0x7FFF_FFFF(as mentioned in datasheet)) in memory mapped mode, there are control bits in REG_SCB5_REMAP register to control which controller is able to access this flash memory mapped space. Either OSPI or SPI2 can exclusively access whole of the flash memory space or there is an option to divide this space between OSPI and SPI2. Following are the three options for flash memory map configuration:

    1. REG_SCB5_REMAP = 0x0 : Whole flash memory mapped space is accessible only by SPI2 controller. With this setting OSPI should not try to access this space.
    2. REG_SCB5_REMAP = 0x1 : Whole flash memory mapped space is accessible only by OSPI controller. With this setting SPI2 should not try to access this space.
    3. REG_SCB5_REMAP = 0x2 : Whole flash memory mapped space is divided between OSPI and SPI2 controller. With this setting flash memory mapped space 0x6000_0000 - 0x602F_FFFF is only accessible by SPI2 and flash memory mapped space 0x6030_0000 - 0x7FFF_FFFF is only accessible by OSPI.

    Last option(3) with REG_SCB5_REMAP = 0x2 is valid only for SC59x/2159x HPC package.

Reply
  • Since both SPI2 and OSPI controllers can accesses the flash space(0x6000_0000 – 0x7FFF_FFFF(as mentioned in datasheet)) in memory mapped mode, there are control bits in REG_SCB5_REMAP register to control which controller is able to access this flash memory mapped space. Either OSPI or SPI2 can exclusively access whole of the flash memory space or there is an option to divide this space between OSPI and SPI2. Following are the three options for flash memory map configuration:

    1. REG_SCB5_REMAP = 0x0 : Whole flash memory mapped space is accessible only by SPI2 controller. With this setting OSPI should not try to access this space.
    2. REG_SCB5_REMAP = 0x1 : Whole flash memory mapped space is accessible only by OSPI controller. With this setting SPI2 should not try to access this space.
    3. REG_SCB5_REMAP = 0x2 : Whole flash memory mapped space is divided between OSPI and SPI2 controller. With this setting flash memory mapped space 0x6000_0000 - 0x602F_FFFF is only accessible by SPI2 and flash memory mapped space 0x6030_0000 - 0x7FFF_FFFF is only accessible by OSPI.

    Last option(3) with REG_SCB5_REMAP = 0x2 is valid only for SC59x/2159x HPC package.

Children
No Data