CMSIS_6 icon indicating copy to clipboard operation
CMSIS_6 copied to clipboard

Incorrect MPU Normal Memory Attributes in armv8m_mpu.h

Open xtayyt opened this issue 5 months ago • 2 comments

Here are the attributes in current armv8m_mpu.h #define MPU_ATTR_NORMAL_OUTER_WB_TR_RA (0b0101) #define MPU_ATTR_NORMAL_OUTER_WB_TR_WA (0b0110)

#define MPU_ATTR_NORMAL_OUTER_WB_RA (0b1101) #define MPU_ATTR_NORMAL_OUTER_WB_WA (0b1110)

#define MPU_ATTR_NORMAL_INNER_WB_TR_RA (0b0101) #define MPU_ATTR_NORMAL_INNER_WB_TR_WA (0b0110)

#define MPU_ATTR_NORMAL_INNER_WB_RA (0b1101) #define MPU_ATTR_NORMAL_INNER_WB_WA (0b1110)

But according to armv8-m_arm.pdf, bit[1] is for RA bit[0] is for WA The attribute values are incorrect Image

Image

xtayyt avatar Aug 14 '25 02:08 xtayyt

Thanks for raising this.

JonatanAntoni avatar Sep 02 '25 11:09 JonatanAntoni

Addressed in #252

JonatanAntoni avatar Sep 02 '25 11:09 JonatanAntoni