<?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>MPC5xxxのトピックRe: Using eTPU C-API-Functions</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Using-eTPU-C-API-Functions/m-p/907728#M13530</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes the problem of issue 1 seems to be solved. But why do you define the end of eTPU_AB sram to 0xC3FC97FF? In the memory map the end is shown at 0xC3FCBFFF. What is the reason therefore?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue 3 i asked: i will test it with the changed source code as soon as possible. I give a reply till end of week, to close the case if so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is of this sector sequence of pwmmac is correct so an the asac-module can use this value correct…&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 May 2019 06:39:20 GMT</pubDate>
    <dc:creator>robert_metzerot</dc:creator>
    <dc:date>2019-05-14T06:39:20Z</dc:date>
    <item>
      <title>Using eTPU C-API-Functions</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Using-eTPU-C-API-Functions/m-p/907726#M13528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;i work with MPC5777C and S32-Studio. I want realize a Permanent Magnet Synchronous Motor Vector Control (AN3206, etpu set 4) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ADC works and is triggered from ASAC-module. DMA between ADC RFIFO and ASAC works not yet, but preliminary i read out the RFIFO interrupt triggered and store result values in result queue of the ASAC module. &lt;BR /&gt;Now i want read out the sample values of ASAC with the API-function "fs_etpu_asac_get_sampleX(…)". Phase A works and phase C, too. But if i want read out the phase b, an IVOR1-interrupt is generated. The SDMERR-Bit in eTPU-&amp;gt;SCR-&amp;gt;MCR-register is set. I looked at the corresponding memory address in SDM via Debugger. Some values which could be the sample values are stored there. &amp;nbsp;&lt;BR /&gt;Is it an access collision problem of SDM? In general, can i use this read out api functions free and independent of the etpu-internal timing? Or is it necessary to wait for a moment, where the etpu does not access this SDM address, and then call this host readout api-function?&lt;BR /&gt;But i do not know in detail, when ASAC write or read in sdm-memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A further case: for debugging, i want write voltage vector via the api-function "fs_etpu_pwmmac_update_svm(...)" in etpu function pwmmac. This works fine. But is it correct, to call this function on a random time, or do i have to synchronize this call to a time slot, where pwmmac is not active in&amp;nbsp; progress? It is clear that the best time is to call it before update time starts. But in general: are there effects to the etpu- function, when i call it randomly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last question:&lt;BR /&gt;I generate a voltage vector with alpha and beta components and write it to pwmmac with "fs_etpu_pwmmac_update_svm(...)" It is calculated with angle from&amp;nbsp; 0 to 360 degrees with cos() and sin() and so on. Related to figure 2 of AN 2969 the sector number i get from "fs_etpu_pwmmac_get_sector()" should be&amp;nbsp; the sequence 1,2,3,4,5,6 in this constellation of rotating voltage vector. But real i get 3,1,5,4,6,2. Is there an update in etpu-function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for help!&lt;BR /&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2019 09:39:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Using-eTPU-C-API-Functions/m-p/907726#M13528</guid>
      <dc:creator>robert_metzerot</dc:creator>
      <dc:date>2019-05-10T09:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using eTPU C-API-Functions</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Using-eTPU-C-API-Functions/m-p/907727#M13529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I guess, it could be due to ECC in parameter RAM that has been added to MPC5676R and MPC5777C.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to add this code before eTPU initialization:&lt;/P&gt;&lt;P&gt;#define eTPU_AB_SPRAM_start&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xC3FC8000&lt;/P&gt;&lt;P&gt;#define eTPU_AB_SPRAM_end&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xC3FC97FF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Clear all ETPU SRAM memories due to ECC */&lt;/P&gt;&lt;P&gt;// eTPU A/B parametric RAM&lt;/P&gt;&lt;P&gt;for (i=eTPU_AB_SPRAM_start; i&amp;lt;eTPU_AB_SPRAM_end; i=i+4)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (*(uint32_t *) i) = 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if it helps or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2019 10:19:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Using-eTPU-C-API-Functions/m-p/907727#M13529</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2019-05-13T10:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using eTPU C-API-Functions</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Using-eTPU-C-API-Functions/m-p/907728#M13530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes the problem of issue 1 seems to be solved. But why do you define the end of eTPU_AB sram to 0xC3FC97FF? In the memory map the end is shown at 0xC3FCBFFF. What is the reason therefore?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue 3 i asked: i will test it with the changed source code as soon as possible. I give a reply till end of week, to close the case if so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is of this sector sequence of pwmmac is correct so an the asac-module can use this value correct…&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2019 06:39:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Using-eTPU-C-API-Functions/m-p/907728#M13530</guid>
      <dc:creator>robert_metzerot</dc:creator>
      <dc:date>2019-05-14T06:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using eTPU C-API-Functions</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Using-eTPU-C-API-Functions/m-p/907729#M13531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you are right. Please use 0xC3FCBFFF as end address.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2019 07:55:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Using-eTPU-C-API-Functions/m-p/907729#M13531</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2019-05-14T07:55:28Z</dc:date>
    </item>
  </channel>
</rss>

