<?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 Re: T1024 bare board code under debug and timebase ticks in T-Series</title>
    <link>https://community.nxp.com/t5/T-Series/T1024-bare-board-code-under-debug-and-timebase-ticks/m-p/872528#M2959</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; background: white;"&gt;See attached simple example for timebase. It is CodeWarrior 10.5.1 project for the T1024RDB board.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; background: white;"&gt;Find the sl1_tbu and sl1_tbl variables in main.c file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; background: white;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Feb 2019 05:59:32 GMT</pubDate>
    <dc:creator>Pavel</dc:creator>
    <dc:date>2019-02-26T05:59:32Z</dc:date>
    <item>
      <title>T1024 bare board code under debug and timebase ticks</title>
      <link>https://community.nxp.com/t5/T-Series/T1024-bare-board-code-under-debug-and-timebase-ticks/m-p/872526#M2957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get some timebase ticks in "hello word" example of bare board CW project on T1024 board.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Init_sram.tcl has following lines&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;# enable all cores in Boot Release Register (BRRL)&lt;BR /&gt; mem [CCSR_ADDR 0xe00e4] = 0x00000003&lt;/P&gt;&lt;P&gt;# enable timebases&lt;BR /&gt; mem [CCSR_ADDR 0xe2084] = 0x00000003 &lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I read SPRN_TBRL I seems always get 0. That is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;register uint32_t tic;&lt;/P&gt;&lt;P&gt;asm volatile("mfspr %0, 0x10c" : "=r" (tic));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tic is always 0. Did I miss something? How to make more or less precise timing in code running under debugger?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2019 22:14:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/T1024-bare-board-code-under-debug-and-timebase-ticks/m-p/872526#M2957</guid>
      <dc:creator>eduardkromskoy</dc:creator>
      <dc:date>2019-02-19T22:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: T1024 bare board code under debug and timebase ticks</title>
      <link>https://community.nxp.com/t5/T-Series/T1024-bare-board-code-under-debug-and-timebase-ticks/m-p/872527#M2958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, It might be closed. I am reading Alternate time base registers which are available&amp;nbsp; at SPR 526, 527. Seems to run at core speed and freeze when debugger suspend code execution.&lt;/P&gt;&lt;P&gt;Thanks for inspiration.&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2019 19:19:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/T1024-bare-board-code-under-debug-and-timebase-ticks/m-p/872527#M2958</guid>
      <dc:creator>eduardkromskoy</dc:creator>
      <dc:date>2019-02-20T19:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: T1024 bare board code under debug and timebase ticks</title>
      <link>https://community.nxp.com/t5/T-Series/T1024-bare-board-code-under-debug-and-timebase-ticks/m-p/872528#M2959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; background: white;"&gt;See attached simple example for timebase. It is CodeWarrior 10.5.1 project for the T1024RDB board.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; background: white;"&gt;Find the sl1_tbu and sl1_tbl variables in main.c file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; background: white;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 05:59:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/T1024-bare-board-code-under-debug-and-timebase-ticks/m-p/872528#M2959</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2019-02-26T05:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: T1024 bare board code under debug and timebase ticks</title>
      <link>https://community.nxp.com/t5/T-Series/T1024-bare-board-code-under-debug-and-timebase-ticks/m-p/872529#M2960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed I missed&amp;nbsp;Physical Core Time Base Enable Register (RCPM_PCTBENR). Added function&amp;nbsp;&lt;/P&gt;&lt;P&gt;void timebase_init(void)&lt;BR /&gt;{&lt;BR /&gt; unsigned int m_gpr = 0;&lt;BR /&gt; volatile uint32_t *a = (uint32_t *)(SYS_IMMR + 0xE2000 + 0x1A0);&lt;BR /&gt; &lt;BR /&gt; mtspr(285, m_gpr); &lt;BR /&gt; mtspr(284, m_gpr); &lt;BR /&gt; &lt;BR /&gt; *a = 1;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything work as expected now. Time base registers are more convenient for my tasks as they run at 50Mhz clock as opposed to Alternate time base registers which run at 1200MHz core clock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 21:39:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/T1024-bare-board-code-under-debug-and-timebase-ticks/m-p/872529#M2960</guid>
      <dc:creator>eduardkromskoy</dc:creator>
      <dc:date>2019-02-26T21:39:35Z</dc:date>
    </item>
  </channel>
</rss>

