Access from untrasted masters for K82

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

Access from untrasted masters for K82

跳至解决方案
585 次查看
EugeneHiihtaja
Senior Contributor I

Hi !

I would like to disable accesses from untrusted masters to memory and peripheral area for K82 MCU.

Only Master0 and 1 can have access to enabled areas.

I have configured  MPU Regions in way when memory and peripheral area (0x40000000-0xFFFFFFFF) give acess for Master0 only. In Region0 i have disabled all Masters and only Master1 is remains.

I undestand that if address range is not covered by MPU region, any master can access to it.

Is this true ?

After that I have disabled all other masters  for read/write in AIPSx-MPRA registers for limit access to peripherals.

Does it really need, MPU already covered peripheral area and access from masters disabled there already ?

MPU of K82 covers some or all peripheral area but from documentaion is not so clear what exact address ranges are 

covered by MPU ?

After that I have checked AIPSx-PACRx register and see posibility to disable access from untrasted master on per peripheral level, one by one.

Does it is really need ? Can MPRA or MPU filter all untrasted masters already ?

E.g what minimal setting required for protect all memory and peripheral areas from other masters than 1 &2 ?

Regards,

Eugene

0 项奖励
1 解答
510 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi,

peripheral space(from 0x40000000) is not protected by MPU. It is protected by AIPS-Lite itself. MPU protects  SRAM, QSPI, BOOT ROM and Flash, SDRAM, Fexbus. AIPS-Lite protects peripheral space.  If address range is not covered by MPU region, any master can access to it.

Regards

Jing

在原帖中查看解决方案

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

Hi,

peripheral space(from 0x40000000) is not protected by MPU. It is protected by AIPS-Lite itself. MPU protects  SRAM, QSPI, BOOT ROM and Flash, SDRAM, Fexbus. AIPS-Lite protects peripheral space.  If address range is not covered by MPU region, any master can access to it.

Regards

Jing

0 项奖励