<?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: How to disable DMA Address Alignment Checking? in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/How-to-disable-DMA-Address-Alignment-Checking/m-p/452167#M3683</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vito,&lt;/P&gt;&lt;P&gt;I am sorry I have discussed the issue with the author of the driver and the comment is incorrect. There is not any &lt;EM&gt;Ignore state checking&lt;/EM&gt; option in the Processor Expert.&lt;/P&gt;&lt;P&gt;You can modify the source code (remove the source code of checking) when you disable generating of these source code files by Processor Expert. Open the context menu of the component in the Component window and select &lt;EM&gt;Code Generation - Don't Write Generated Component Modules&lt;/EM&gt;, see the screenshot below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/52139i0DB07BCF6AD88B3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This option ensures that the source code of the DMA component will not be modified by Processor Expert (during Generate Processor Expert Code operation).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Feb 2016 12:27:54 GMT</pubDate>
    <dc:creator>marek_neuzil</dc:creator>
    <dc:date>2016-02-02T12:27:54Z</dc:date>
    <item>
      <title>How to disable DMA Address Alignment Checking?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-to-disable-DMA-Address-Alignment-Checking/m-p/452165#M3681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am using KL46Z SPI with DMA, and I do receive a block using the following code (which works flawlessly):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14447218876418003 jive_text_macro" data-renderedposition="50_8_1232_48" jivemacro_uid="_14447218876418003" modifiedtitle="true"&gt;&lt;P&gt;SPIMasterLDD_1_ReceiveBlock(SPIMasterLDD_1_TDD_Ptr,reg_data,cnt);&lt;/P&gt;&lt;P&gt;SPIMasterLDD_1_SendBlock(SPIMasterLDD_1_TDD_Ptr,reg_data,cnt);&lt;/P&gt;&lt;P&gt;while(SPIMasterLDD_1_GetBlockReceivedStatus(SPIMasterLDD_1_TDD_Ptr)==FALSE);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use slow clock in order to save battery (core=8MHz).&lt;/P&gt;&lt;P&gt;I noticed a long delay (120us) before rx/tx, and I finally figured it out the delay is due to SetDestinationAddress/SetSourceAddress:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_14447214481028263 jive_macro_code jive_text_macro" data-renderedposition="182_8_1232_160" jivemacro_uid="_14447214481028263"&gt;&lt;P&gt;LDD_TError DMA1_SetSourceAddress(DMA1_TChanDeviceData *ChanDeviceDataPtr, LDD_DMA_TData *Address)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* This test can be disabled by setting the "Ignore state checking"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; property to the "yes" value in the "Configuration inspector" */&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (((uint32_t)Address % GetTransactionUnitSize(((DMA1_TChnDevData *)ChanDeviceDataPtr)-&amp;gt;TCDPtr)) != 0U) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return ERR_PARAM_ADDRESS;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; DMA1__SetSrcAddress(((DMA1_TChnDevData *)ChanDeviceDataPtr)-&amp;gt;TCDPtr, (uint32_t)Address);&lt;/P&gt;&lt;P&gt;&amp;nbsp; return ERR_OK;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;they both perform a 32 bit modulo operation for preliminary address alignment checking. I would like to disable this test. Comment on the function states:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;This test can be disabled by setting the "&lt;STRONG&gt;Ignore state checking&lt;/STRONG&gt;"&amp;nbsp; property to the "yes" value in the "Configuration inspector"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;But such option does not exist on KDS3.0.0:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;IMG alt="pastedImage_3.png" src="https://community.nxp.com/t5/image/serverpage/image-id/21765i7344C8608343DEE2/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_3.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Does anybody know how to disable DMA Address Alignment checking?&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;Vito.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 13:22:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-to-disable-DMA-Address-Alignment-Checking/m-p/452165#M3681</guid>
      <dc:creator>vitomarolda</dc:creator>
      <dc:date>2020-11-02T13:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable DMA Address Alignment Checking?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-to-disable-DMA-Address-Alignment-Checking/m-p/452166#M3682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vito,&lt;/P&gt;&lt;P&gt;I&amp;nbsp; test it on my side , and under the function of " DMAT1_SetSourceAddress", there is not have the "test",&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/29777i9EA1DE501DB89182/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I use the KDS 3.0,&amp;nbsp; only add the component of "DMATransfer_LDD" and almost do nothing.&lt;/P&gt;&lt;P&gt;And doest your code is generate on the KDS3.0 or porting if from other place ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 07:42:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-to-disable-DMA-Address-Alignment-Checking/m-p/452166#M3682</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-01-28T07:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable DMA Address Alignment Checking?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-to-disable-DMA-Address-Alignment-Checking/m-p/452167#M3683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vito,&lt;/P&gt;&lt;P&gt;I am sorry I have discussed the issue with the author of the driver and the comment is incorrect. There is not any &lt;EM&gt;Ignore state checking&lt;/EM&gt; option in the Processor Expert.&lt;/P&gt;&lt;P&gt;You can modify the source code (remove the source code of checking) when you disable generating of these source code files by Processor Expert. Open the context menu of the component in the Component window and select &lt;EM&gt;Code Generation - Don't Write Generated Component Modules&lt;/EM&gt;, see the screenshot below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/52139i0DB07BCF6AD88B3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This option ensures that the source code of the DMA component will not be modified by Processor Expert (during Generate Processor Expert Code operation).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 12:27:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-to-disable-DMA-Address-Alignment-Checking/m-p/452167#M3683</guid>
      <dc:creator>marek_neuzil</dc:creator>
      <dc:date>2016-02-02T12:27:54Z</dc:date>
    </item>
  </channel>
</rss>

