跳转至内容
  • 版块
  • 最新
  • 标签
  • 热门
折叠
品牌标识

YunTu Forum

YTMicro.com
  1. 主页
  2. Discussion & Question
  3. YTM32B1M系列
  4. YTM32B1MD14 - MPU Configuration - Can I grant permission rw-|r-- for a memory section?

YTM32B1MD14 - MPU Configuration - Can I grant permission rw-|r-- for a memory section?

已定时 已固定 已锁定 已移动 YTM32B1M系列
5 帖子 2 发布者 62 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • nguyan2N 离线
    nguyan2N 离线
    nguyan2
    编写于 最后由 编辑
    #1

    Hello all,

    For one memory section, I want to grant read-write access for privileged mode and read-only access for unprivileged mode (rw-|r--).

    However, I don’t see any permission option like this in the source code generated by the YTConfig Tool.496d9aea-f9e4-4d33-a28e-d30ea595d4f1-image.png

    I also checked the ARMv8-M documentation, and it seems that this kind of permission is not directly supported.22a54749-f50a-4e8d-859b-7eeeb5fbf8b8-image.png

    Is there any known solution or workaround for this case?

    Thanks in advance!

    1 条回复 最后回复
    0
    • DigaD 离线
      DigaD 离线
      Diga
      编写于 最后由 Diga 编辑
      #2

      ARMv8 can't support your case.
      If set AP = 0b00, only privaleged code can read/write memory, user mode can't read or write;
      If set AP = 0b01, any privaleged code can read/write memory, user mode also;

      nguyan2N 1 条回复 最后回复
      0
      • nguyan2N 离线
        nguyan2N 离线
        nguyan2
        回复了Diga 最后由 编辑
        #3

        Diga 在 YTM32B1MD14 - MPU Configuration - Can I grant permission rw-|r-- for a memory section? 中说:

        ARMv8 can't support your case.
        If set AP = 0b00, only privaleged code can read/write memory, user mode can't read or write;
        If set AP = 0b01, any privaleged code can read/write memory, user mode also;

        Hi, thanks for your reply. Do you have any idea about the workaround for my case?

        1 条回复 最后回复
        0
        • DigaD 离线
          DigaD 离线
          Diga
          编写于 最后由 Diga 编辑
          #4

          ARMv7 can support your case. YTM32B1HA01's core is CORTEX-M7 with ARMv7.
          b514bd3a-96f7-4073-8763-eca5918191c8-image.png

          nguyan2N 1 条回复 最后回复
          0
          • nguyan2N 离线
            nguyan2N 离线
            nguyan2
            回复了Diga 最后由 编辑
            #5

            Diga 在 YTM32B1MD14 - MPU Configuration - Can I grant permission rw-|r-- for a memory section? 中说:

            ARMv7 can support your case. YTM32B1HA01's core is CORTEX-M7 with ARMv7.
            b514bd3a-96f7-4073-8763-eca5918191c8-image.png

            Thanks for your suggestion but unfortunately we can't change the chipset.

            Is there any mechanism or any demo code to switch between Supervisor mode and User mode for YTM32B1MD14?

            1 条回复 最后回复
            0

          • 云途开发生态介绍

            快速上手云途开发生态

          • 云途论坛规则/Yuntu Forum Rules

            发帖前请查看

          • YT CONFIG TOOL调查问卷

            帮助改进和优化YT CONFIG TOOL,有机会抽取YTM32B1ME0 EVB哦...

          • can
            19
            demo
            19
            uds
            11
            lin stack
            9
            fbl
            5
            md14
            5
            yt-link
            5
            adc模块
            4
            Online Users
            • 登录

            • 登录或注册以进行搜索。
            • 第一个帖子
              最后一个帖子
            0
            • 版块
            • 最新
            • 标签
            • 热门