LPC55S69 : disable all co-processors

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC55S69 : disable all co-processors

493 Views
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

Labels (1)
0 Kudos
1 Reply

423 Views
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 Kudos