MCU+ SDK Example Projects using incorrect ARMv7 MPU Attributes for Peripheral Register Region

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: High
    • SITSW-9431
    • 11.01.00
    • 12.00.00
    • Hide
      am62xx-sk
      am62xx-sk-lp
      am62x-sip-sk
      am62a-sk
      am62p-sk
      am62d-evm
      am275x-evm
      am62l-evm
      am64xx-evm
      am64xx-sk
      Show
      am62xx-sk am62xx-sk-lp am62x-sip-sk am62a-sk am62p-sk am62d-evm am275x-evm am62l-evm am64xx-evm am64xx-sk

      Some MCU+ SDK example projects use an incorrect ARMv7 MPU attribute of "NonCached" for the SoC peripheral register background region in their associated SysConfig configuration file. The appropriate setting should be "Device". Using a configuration of "NonCached" may result in unintended/incorrect operation of peripheral modules due to memory accesses that may get re-ordered.

      This affects the following example and source folders in the MCU+ SDK base tree:

      • examples/drivers/boot/
      • examples/drivers/ipc/
      • examples/lpm/
      • examples/sdl/
      • examples/security/
      • test/

      Different device families are affected with a different subset of the above.

      All peripheral register background regions should be defined as "Device", consistenty.

      # Number of examples (total) defining the peripheral register region
      a0797059@LT5CG1254PPB MINGW64 ~/git/mcupsdk-core-k3 (k3_main)
      $ git grep 'mpu_armv71.attributes' | wc -l
      1541
      
      # Number of examples using the correct MPU attribute
      a0797059@LT5CG1254PPB MINGW64 ~/git/mcupsdk-core-k3 (k3_main)
      $ git grep 'mpu_armv71.attributes' | grep 'Device' | wc -l
      1424
      
      # Number of examples using an incorrect MPU attribute (other than 'Device')
      a0797059@LT5CG1254PPB MINGW64 ~/git/mcupsdk-core-k3 (k3_main)
      $ git grep 'mpu_armv71.attributes' | grep -v 'Device' | wc -l
      117
      

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-6226 - MCU+ SDK Example Projects using inc...
                SYNCHRONIZED
                • Last Sync Date: