GPIO Attribute Checker Register

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

GPIO Attribute Checker Register

跳至解决方案
981 次查看
jun1
Contributor V

Hello
Use the MKM33Z128ACLL5.

Please tell me about 42.2.4 GPIO Attribute Checker Register (GPIOx_GACR) in the KM series reference manual.

This seems to be a feature that restricts port access.
I think that it is a function to limit not to be rewritten carelessly.
So I do not understand this 3-bit explanation well.

Attribute Check Byte
This 3 bit field defines the attributes required to access the corresponding GPIO port's programming model.
000 User nonsecure: Read + Write; User Secure: Read + Write; Privileged Secure: Read + Write
001 User nonsecure: Read; User Secure: Read + Write; Privileged Secure: Read + Write
010 User nonsecure: None; User Secure: Read + Write; Privileged Secure: Read + Write
011 User nonsecure: Read; User Secure: Read; Privileged Secure: Read + Write
100 User nonsecure: None; User Secure: Read; Privileged Secure: Read + Write
101 User nonsecure: None; User Secure: None; Privileged Secure: Read + Write
110 User nonsecure: None; User Secure: None; Privileged Secure: Read
111 User nonsecure: None; User Secure: None; Privileged Secure: None

User nonsecure, User Secure and Privileged Secure do not know the relationship with specific operations.
(Is there no privilege for KM33 in the first place?)
For example, please tell us what happens if you set 111.
Or please tell us the location of the explanatory document.

Thank you.

jun

0 项奖励
回复
1 解答
911 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi jun,

KM33 has 2 master, M0 core and DMA. Please see the RM page 68, Figure 3-7

pastedImage_1.png

The MCM_MATCR0 register control these two masters' attribute(RM page 232).

pastedImage_2.png

If you set GPIOx_GACR to 111, then none of these two masters can access this port.

Regards,

Jing

在原帖中查看解决方案

0 项奖励
回复
1 回复
912 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi jun,

KM33 has 2 master, M0 core and DMA. Please see the RM page 68, Figure 3-7

pastedImage_1.png

The MCM_MATCR0 register control these two masters' attribute(RM page 232).

pastedImage_2.png

If you set GPIOx_GACR to 111, then none of these two masters can access this port.

Regards,

Jing

0 项奖励
回复