<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic two system tick timers in CPU0 in lpc55s69 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/two-system-tick-timers-in-CPU0-in-lpc55s69/m-p/1001461#M39322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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).&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. The secure one is working if i call&amp;nbsp;SysTick_Config in secure world.&lt;/P&gt;&lt;P&gt;2. The non-secure world enters hard fault if i call&amp;nbsp;SysTick_Config in non-secure world. I debug the non-secure world code and it shows that&amp;nbsp;&lt;SPAN&gt;SysTick_Config use secure address to configure the system tick timer. (why does it not use Systick_NS address? )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyone could help me to initialize 2 system tick timers separately in different worlds?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Mar 2020 05:26:34 GMT</pubDate>
    <dc:creator>binjun-charles_</dc:creator>
    <dc:date>2020-03-23T05:26:34Z</dc:date>
    <item>
      <title>two system tick timers in CPU0 in lpc55s69</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/two-system-tick-timers-in-CPU0-in-lpc55s69/m-p/1001461#M39322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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).&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. The secure one is working if i call&amp;nbsp;SysTick_Config in secure world.&lt;/P&gt;&lt;P&gt;2. The non-secure world enters hard fault if i call&amp;nbsp;SysTick_Config in non-secure world. I debug the non-secure world code and it shows that&amp;nbsp;&lt;SPAN&gt;SysTick_Config use secure address to configure the system tick timer. (why does it not use Systick_NS address? )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyone could help me to initialize 2 system tick timers separately in different worlds?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2020 05:26:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/two-system-tick-timers-in-CPU0-in-lpc55s69/m-p/1001461#M39322</guid>
      <dc:creator>binjun-charles_</dc:creator>
      <dc:date>2020-03-23T05:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: two system tick timers in CPU0 in lpc55s69</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/two-system-tick-timers-in-CPU0-in-lpc55s69/m-p/1001462#M39323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, BinJun,&lt;/P&gt;&lt;P&gt;Can you post your code so that we can have a review?&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2020 08:11:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/two-system-tick-timers-in-CPU0-in-lpc55s69/m-p/1001462#M39323</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2020-03-23T08:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: two system tick timers in CPU0 in lpc55s69</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/two-system-tick-timers-in-CPU0-in-lpc55s69/m-p/1001463#M39324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i used a example code in SDK_2.7 --&amp;nbsp;\boards\lpcxpresso55s69\trustzone_examples\secure_gpio.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the non-secure world project, i call&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;SysTick_Config(USEC_TO_COUNT(5000U, DEMO_SYSTICK_CLK_FREQ))&lt;/EM&gt;&lt;/STRONG&gt; in main() entry. Then program enters hard fault.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2020 08:30:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/two-system-tick-timers-in-CPU0-in-lpc55s69/m-p/1001463#M39324</guid>
      <dc:creator>binjun-charles_</dc:creator>
      <dc:date>2020-03-23T08:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: two system tick timers in CPU0 in lpc55s69</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/two-system-tick-timers-in-CPU0-in-lpc55s69/m-p/1001464#M39325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also i have tried the code below in secure project&lt;/P&gt;&lt;P&gt;//configure secure systick&lt;/P&gt;&lt;P&gt;SysTick_Config(MSEC_TO_COUNT(1000U, DEMO_SYSTICK_CLK_FREQ));&lt;/P&gt;&lt;P&gt;//configure non-secure systick&lt;/P&gt;&lt;P&gt;SysTick_NS-&amp;gt;LOAD = (uint32_t)(MSEC_TO_COUNT(2000U, DEMO_SYSTICK_CLK_FREQ) - 1UL);&amp;nbsp;&lt;BR /&gt; SysTick_NS-&amp;gt;VAL = 0UL;&amp;nbsp;&lt;BR /&gt; SysTick_NS-&amp;gt;CTRL = SysTick_CTRL_CLKSOURCE_Msk |&amp;nbsp;SysTick_CTRL_TICKINT_Msk |SysTick_CTRL_ENABLE_Msk;&lt;/P&gt;&lt;P&gt;The code seems working(non-secure systick working, but frequency is not same as value i set).&amp;nbsp;&lt;/P&gt;&lt;P&gt;However secure systick is working after configuring non-secure one.&amp;nbsp; How can i configure these 2 system tick timers separately to make them working in different worlds.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2020 13:34:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/two-system-tick-timers-in-CPU0-in-lpc55s69/m-p/1001464#M39325</guid>
      <dc:creator>binjun-charles_</dc:creator>
      <dc:date>2020-03-23T13:34:19Z</dc:date>
    </item>
  </channel>
</rss>

