<?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: Performance problem A5 processor in Vybrid Processors</title>
    <link>https://community.nxp.com/t5/Vybrid-Processors/Performance-problem-A5-processor/m-p/301107#M2633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Juergen,&lt;/P&gt;&lt;P&gt;No OpenSDA is not slowing down the CA5 core.&amp;nbsp; OpenSDA itself is not the fastest (runs only on 1MHz), but once command to RUN is executed it has no influence on the CA5 core.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Speed of CA5 computing depends on many factors. For example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;for mathematics operation if floating point if VFP is enabled&lt;/LI&gt;&lt;LI&gt;speed of the core&lt;/LI&gt;&lt;LI&gt;MMU setting / cache enable (L1 D, L1 C, L2)&lt;/LI&gt;&lt;LI&gt;source code location&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;/Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Apr 2014 06:28:36 GMT</pubDate>
    <dc:creator>jiri-b36968</dc:creator>
    <dc:date>2014-04-29T06:28:36Z</dc:date>
    <item>
      <title>Performance problem A5 processor</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Performance-problem-A5-processor/m-p/301106#M2632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running an existing performance test code with the A5 processor of TWR-VF65GS10 development tower. To debug the program I use a DS-5 compiler, the processor is set to 480MHz. But the measured performance test time is too high, the previous used 120MHz processor runs the test code in 0,2s the A5 needs 2s. &lt;/P&gt;&lt;P&gt;Is there any possible processor setting, slowing down the A5 performance?&lt;/P&gt;&lt;P&gt;I run the program in debug mode with DS-5 tool over SDA interface, is it possible this slows down the A5 performance?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 09:33:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Performance-problem-A5-processor/m-p/301106#M2632</guid>
      <dc:creator>x_dex</dc:creator>
      <dc:date>2014-04-22T09:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem A5 processor</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Performance-problem-A5-processor/m-p/301107#M2633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Juergen,&lt;/P&gt;&lt;P&gt;No OpenSDA is not slowing down the CA5 core.&amp;nbsp; OpenSDA itself is not the fastest (runs only on 1MHz), but once command to RUN is executed it has no influence on the CA5 core.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Speed of CA5 computing depends on many factors. For example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;for mathematics operation if floating point if VFP is enabled&lt;/LI&gt;&lt;LI&gt;speed of the core&lt;/LI&gt;&lt;LI&gt;MMU setting / cache enable (L1 D, L1 C, L2)&lt;/LI&gt;&lt;LI&gt;source code location&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;/Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 06:28:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Performance-problem-A5-processor/m-p/301107#M2633</guid>
      <dc:creator>jiri-b36968</dc:creator>
      <dc:date>2014-04-29T06:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem A5 processor</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Performance-problem-A5-processor/m-p/301108#M2634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I’m using a DS-5 compiler to debug a TWR-VF65GS10 development tower with processor&amp;nbsp; speed of 480MHz.&lt;/P&gt;&lt;P&gt;Which setting should the MMU have to get a max performance?&lt;/P&gt;&lt;P&gt;In which registers can I check the MMU / cache settings of the processor?&lt;/P&gt;&lt;P&gt;How can I enable VFP?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 16:44:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Performance-problem-A5-processor/m-p/301108#M2634</guid>
      <dc:creator>x_dex</dc:creator>
      <dc:date>2014-04-29T16:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem A5 processor</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Performance-problem-A5-processor/m-p/301109#M2635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Juergen,&lt;/P&gt;&lt;P&gt;1. VFP can be enabled using Cortex A5 registers:&lt;/P&gt;&lt;P&gt;&lt;A href="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0449b/ch02s01s02.html" title="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0449b/ch02s01s02.html"&gt;http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0449b/ch02s01s02.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I used&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm ( "MRC p15, 0, r0, c1, c1, 2");&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm ( "ORR r0, r0, #0xC00" );&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm (&amp;nbsp;&amp;nbsp;&amp;nbsp; "MCR p15, 0, r0, c1, c1, 2");&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm ( "MOV r0, #0x03c00000");&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm ( "MCR p15, 0, r0, c1, c0, 2");&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm ( "MOV r3, #0x40000000");&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm ( "VMSR FPEXC, r3"); &lt;/P&gt;&lt;P&gt;please note that compiler has to be set to use VFP instructions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. similar for MMU. Need to set MMU translation tables, regions, enable caches (L1,L2) There is lot of information on infocenter.ar.com. But you can reuse code which is part of MQX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0. But first of all please describe your application.&amp;nbsp; What you want to achieve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 08:28:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Performance-problem-A5-processor/m-p/301109#M2635</guid>
      <dc:creator>jiri-b36968</dc:creator>
      <dc:date>2014-04-30T08:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem A5 processor</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Performance-problem-A5-processor/m-p/301110#M2636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jiri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on the same issue as Juergen. We assume that there are no explicit cache, mmu, fpu settings in Freescale's vybird sample code.&lt;/P&gt;&lt;P&gt;Unfortunately I'm not very familiar with cache / MMU setup resp. can not implement the general instructions provided by ARM's documentation.&lt;/P&gt;&lt;P&gt;Could you provide me some hints / examples, where and how I should make these setups?&lt;/P&gt;&lt;P&gt;Andi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 07:20:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Performance-problem-A5-processor/m-p/301110#M2636</guid>
      <dc:creator>amarti</dc:creator>
      <dc:date>2014-07-09T07:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Performance problem A5 processor</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Performance-problem-A5-processor/m-p/301111#M2637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;I would recommend you to utilize MQX code:&lt;/P&gt;&lt;P&gt;You need to reuse files with cache.c, cache_a5.c etc. (old versions attached)&lt;/P&gt;&lt;P&gt;and&amp;nbsp; you need to define MMU TLBs for example like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;// turn on MMU - create table, fill 4k items, change necessery ones items&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;void cache_setting_a5(void) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;#ifdef MMU_TLB&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // available cahce setting:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp; PSP_PAGE_TYPE_CACHE_WTNWA,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp; PSP_PAGE_TYPE_CACHE_WBNWA,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp; PSP_PAGE_TYPE_CACHE_NON,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Enable MMU and L1 cache */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* alloc L1 mmu table */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //L1PageTable = _mem_alloc_align(MMU_TRANSLATION_TABLE_SIZE, MMU_TRANSLATION_TABLE_ALIGN);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* None cacheable is comon with strongly ordered. MMU doesnt work with another init configuration */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _mmu_vinit(PSP_PAGE_TABLE_SECTION_SIZE(PSP_PAGE_TABLE_SECTION_SIZE_1MB) | PSP_PAGE_DESCR(PSP_PAGE_DESCR_ACCESS_RW_ALL) | PSP_PAGE_TYPE(PSP_PAGE_TYPE_STRONG_ORDER), (pointer)L1PageTable);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* add region in sram area */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _mmu_add_vregion((pointer)__INTERNAL_SRAM_BASE, (pointer)__INTERNAL_SRAM_BASE, (_mem_size) 0x00100000, PSP_PAGE_TABLE_SECTION_SIZE(PSP_PAGE_TABLE_SECTION_SIZE_1MB) | PSP_PAGE_TYPE(PSP_PAGE_TYPE_CACHE_WBNWA)&amp;nbsp;&amp;nbsp; | PSP_PAGE_DESCR(PSP_PAGE_DESCR_ACCESS_RW_ALL));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* add cached region in ddr area */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;// !!!!! SDRAM not working when GRAM + QSPIO + GSPI1 TLB enabled&amp;nbsp; !!!!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;// !!!!! SDRAM not working when GRAM + QSPIO + GSPI1 TLB enabled&amp;nbsp; !!!!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;// !!!!! SDRAM not working when GRAM + QSPIO + GSPI1 TLB enabled&amp;nbsp; !!!!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;// !!!!! SDRAM not working when GRAM + QSPIO + GSPI1 TLB enabled&amp;nbsp; !!!!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _mmu_add_vregion((pointer)__EXTERNAL_DDRAM_BASE, (pointer)__EXTERNAL_DDRAM_BASE, __EXTERNAL_DDRAM_SIZE, PSP_PAGE_TABLE_SECTION_SIZE(PSP_PAGE_TABLE_SECTION_SIZE_1MB) | PSP_PAGE_TYPE(PSP_PAGE_TYPE_CACHE_WBNWA) | PSP_PAGE_DESCR(PSP_PAGE_DESCR_ACCESS_RW_ALL));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* add cached region in gram area */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //_mmu_add_vregion((pointer)__INTERNAL_GRAM_BASE, (pointer)__INTERNAL_GRAM_BASE, __INTERNAL_GRAM_SIZE, PSP_PAGE_TABLE_SECTION_SIZE(PSP_PAGE_TABLE_SECTION_SIZE_1MB) | PSP_PAGE_TYPE(PSP_PAGE_TYPE_CACHE_WBNWA) | PSP_PAGE_DESCR(PSP_PAGE_DESCR_ACCESS_RW_ALL));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* add cached region in QSPI0 area */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //_mmu_add_vregion((pointer)__EXTERNAL_QSPI0_BASE, (pointer)__EXTERNAL_QSPI0_BASE, __EXTERNAL_QSPI0_SIZE, PSP_PAGE_TABLE_SECTION_SIZE(PSP_PAGE_TABLE_SECTION_SIZE_1MB) | PSP_PAGE_TYPE(PSP_PAGE_TYPE_CACHE_WBNWA) | PSP_PAGE_DESCR(PSP_PAGE_DESCR_ACCESS_RW_ALL));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* add cached region in QSPI1 area */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //_mmu_add_vregion((pointer)__EXTERNAL_QSPI1_BASE, (pointer)__EXTERNAL_QSPI1_BASE, __EXTERNAL_QSPI1_SIZE, PSP_PAGE_TABLE_SECTION_SIZE(PSP_PAGE_TABLE_SECTION_SIZE_1MB) | PSP_PAGE_TYPE(PSP_PAGE_TYPE_CACHE_WBNWA) | PSP_PAGE_DESCR(PSP_PAGE_DESCR_ACCESS_RW_ALL));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _mmu_venable();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;#endif&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _dcache_enable();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _icache_enable();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 09:34:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Performance-problem-A5-processor/m-p/301111#M2637</guid>
      <dc:creator>jiri-b36968</dc:creator>
      <dc:date>2014-08-04T09:34:11Z</dc:date>
    </item>
  </channel>
</rss>

