LPC55S69 : disable all co-processors

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

LPC55S69 : disable all co-processors

876 次查看
EugeneHiihtaja
Senior Contributor I

Hi !

I can see in all RTOS examples on nonsecure side the next code available:

void SystemInit(void)
{
#if ((__FPU_PRESENT == 1) && (__FPU_USED == 1))
SCB->CPACR |= ((3UL << 10 * 2) | (3UL << 11 * 2)); /* set CP10, CP11 Full Access */
#endif /* ((__FPU_PRESENT == 1) && (__FPU_USED == 1)) */

SCB->CPACR |= ((3UL << 0 * 2) | (3UL << 1 * 2)); /* set CP0, CP1 Full Access (enable PowerQuad) */

SCB->NSACR |= ((3UL << 0) | (3UL << 10)); /* enable CP0, CP1, CP10, CP11 Non-secure Access */
}

But it seems to me the same system register can be configured via ConfigTool in TEE section Misc.

I would like to disable all co-processors usage on secure and nonsecure side. Only FPU need on both sides.

Can I do via ConfigTool TEE section only ?

Regards,

Eugene

标签 (1)
0 项奖励
回复
1 回复

806 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello  Eugene Hiihtaja,

In the Trusted Execution Environment, or TEE tool, you can configure security policies of memory areas, bus masters, and peripherals, in order to isolate and safeguard sensitive areas of your application.

Refer to your description, it seems the "Miscellaneous" view can meet your requirement, the list of these options depends on processor data.

pastedImage_1.png

All the options influence your register settings, and can be inspected in the Register view.

pastedImage_5.png

Regards,

Alice

0 项奖励
回复