binjun wang

two system tick timers in CPU0 in lpc55s69

Discussion created by binjun wang on Mar 22, 2020
Latest reply on Mar 23, 2020 by binjun wang

Hello All

 

As we know, there are 2 system tick timers in CPU0. I am trying to initialize secure one in secure world and non-secure one in trustzone example project(hello-world and My IDE is IAR 8.40). 

1. The secure one is working if i call SysTick_Config in secure world.

2. The non-secure world enters hard fault if i call SysTick_Config in non-secure world. I debug the non-secure world code and it shows that SysTick_Config use secure address to configure the system tick timer. (why does it not use Systick_NS address? )

 

Anyone could help me to initialize 2 system tick timers separately in different worlds?  

Outcomes