Sony's Developer World forum

    • Home
    • Forum guidelines

    Access SPI Flash via memory map

    Spresense
    3
    6
    1386
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      nimish last edited by

      Section 2.6 Memory Mapping in https://www.sony-semicon.co.jp/products/common/pdf/CXD5602_user_manual.pdf shows that there's a region of memory with "Data on SPI-Flash"

      How/where is the 8MB of SPI Flash mapped into this 256MB region? Is it accessible?

      C 2 Replies Last reply Reply Quote
      • C
        CamilaSouza DeveloperWorld @nimish last edited by

        Hey, @nimish
        I actually don't know this one. I'm investigating internally and will get back to you once I have an answer.

        1 Reply Last reply Reply Quote
        • C
          CamilaSouza DeveloperWorld @nimish last edited by

          Hey, @nimish
          Unfortunately, because of security issue, we don’t open the memory mapped access by application CPUs.
          Application CPU must request read from/write to the flash to M0P.

          N M 2 Replies Last reply Reply Quote
          • N
            nimish @CamilaSouza last edited by nimish

            @CamilaSouza It would be better if the M0+ cpu enabled a window into the 4MB SPI flash or allowed r/w access without buffering in ram. The farapi to r/w files off the spi flash is not enough (fw_fm_rawread presumably).

            It also cripples the processor when it comes to loading ML models or executables from storage. It's hard to see why the platform is advertised with 8MB flash if only half actually works and is not actually enabled for access per the manual.

            Has SONY disabled any other core functionality?

            1 Reply Last reply Reply Quote
            • Referenced by  J jens 0 1 1 
            • M
              maxieaussie 0 @CamilaSouza last edited by

              @CamilaSouza I have just opened a new topic about physically upgrading the QSPI flash memory chip with a bigger one (pin compatible and partially instruction compatible) . Any reason that you could think that it would not work? This would make the flash 256M instead of 8M
              cheers

              C 1 Reply Last reply Reply Quote
              • C
                CamilaSouza DeveloperWorld @maxieaussie 0 last edited by

                Hi, @maxieaussie-0
                I already replied in the other post, but I'll just replicate the answer here for reference.

                Physically upgrading the Flash will not work because Secure CPU defined fixed size of partitions, for SPK area and User area.
                So even if you re-worked SPI Flash, it is the same size on software side.

                1 Reply Last reply Reply Quote
                • First post
                  Last post
                Developer World
                Copyright © 2021 Sony Group Corporation. All rights reserved.
                • Contact us
                • Legal