<?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: DAC_LDD issue with SetBufferSize() on K60 tower in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/DAC-LDD-issue-with-SetBufferSize-on-K60-tower/m-p/155731#M154</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the fix of your probelm has been already published within the Udpate #2 V1.0.1 for CW MCU V10.1. To download the update please follow this link: &lt;A href="http://cache.freescale.com/lgfiles/updates/CWHC08/CW_MCU_v10.1_Update_1.0.1.zip?fpsp=1&amp;amp;WT_TYPE=Updates%20and%20Patches&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=zip&amp;amp;WT_ASSET=Downloads&amp;amp;sr=6" rel="nofollow" target="_blank"&gt;Update #2 V1.0.1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;BR /&gt;Vojtech Filip&lt;BR /&gt;Processor Expert Support Team﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Aug 2011 15:06:50 GMT</pubDate>
    <dc:creator>ProcessorExpert</dc:creator>
    <dc:date>2011-08-17T15:06:50Z</dc:date>
    <item>
      <title>DAC_LDD issue with SetBufferSize() on K60 tower</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/DAC-LDD-issue-with-SetBufferSize-on-K60-tower/m-p/155729#M152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I think there is an issue with the generated SetBufferSize() function for the DAC_LDD bean on the K60 tower; I think it's setting the DACx_C2.DACBFUP bits to the wrong value (specifically, off-by-one). I added the DAC_LDD bean to my project, turned the Data Buffer property to "Enabled" and then changed the SetBuffer() and SetBufferSize() method settings to "Generate Code". In the generated DA1_Init() function it sets the DACBFUP bits to 0xF, since I left the buffer size at the default of 16. However, if I call DA1_SetBufferSize() with a buffer size of 16, it ends up setting these bits to 0x0. DA1_SetBufferSize() doesn't flag this as an error (it passes the if(Size &amp;gt; DA1_BUFFER_MAX_SIZE) test) but then it calls DAC_PDD_SetBufferSize() where the parameter gets masked with DAC_C2_DACBFUP_MASK (which is 0xF) which zeroes out DACBFUP. Is this an off-by-one error with the generated code? It seems like it should be subtracting one before passing the parameter to DAC_PDD_SetBufferSize(), since the DAC's buffer read pointers are zero-based.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 01:35:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/DAC-LDD-issue-with-SetBufferSize-on-K60-tower/m-p/155729#M152</guid>
      <dc:creator>ScottW</dc:creator>
      <dc:date>2011-08-02T01:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: DAC_LDD issue with SetBufferSize() on K60 tower</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/DAC-LDD-issue-with-SetBufferSize-on-K60-tower/m-p/155730#M153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you are completely correct. However this problem has been already fixed in the Update#2 V1.0.1 for Code Warrior V10.1, where you can find exactly the code that you proposed to fix this issue in your post to subtract one before passing the parameter to DAC_PDD_SetBufferSize()﻿.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DAC_PDD_SetBufferSize(DACx_BASE_PTR,Size - 1U);﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the Update#2 V1.0.1 fixes this issue. Unfortunately it is currently not available &lt;STRONG&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/STRONG&gt;yet, but as far as I know it should be published within several days. I will update this thread when it will be ready to ensure that you will be properly informed about this release availability.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For now as the workaround you have to freeze the generate code ("Code Generation" menu command in the component´s pop-up menu) and change it manually or you can pass value subtracted by one to this function﻿.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are sorry for the inconvenience ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;BR /&gt;Vojtech Filip&lt;BR /&gt;Processor Expert Support Team﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 23:16:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/DAC-LDD-issue-with-SetBufferSize-on-K60-tower/m-p/155730#M153</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2011-08-02T23:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: DAC_LDD issue with SetBufferSize() on K60 tower</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/DAC-LDD-issue-with-SetBufferSize-on-K60-tower/m-p/155731#M154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the fix of your probelm has been already published within the Udpate #2 V1.0.1 for CW MCU V10.1. To download the update please follow this link: &lt;A href="http://cache.freescale.com/lgfiles/updates/CWHC08/CW_MCU_v10.1_Update_1.0.1.zip?fpsp=1&amp;amp;WT_TYPE=Updates%20and%20Patches&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=zip&amp;amp;WT_ASSET=Downloads&amp;amp;sr=6" rel="nofollow" target="_blank"&gt;Update #2 V1.0.1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;BR /&gt;Vojtech Filip&lt;BR /&gt;Processor Expert Support Team﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 15:06:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/DAC-LDD-issue-with-SetBufferSize-on-K60-tower/m-p/155731#M154</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2011-08-17T15:06:50Z</dc:date>
    </item>
  </channel>
</rss>

