<?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: Chip select issue with SPIMaster_LDD in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/Chip-select-issue-with-SPIMaster-LDD/m-p/240324#M1310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, this is a bug in the SPIMaster_LDD component. Thank you for reporting it. The fix is available in &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-MCU10&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;CodeWarrior V10.4&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ladislav Vadkerti&lt;/P&gt;&lt;P&gt;Freescale, Processor Expert team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 May 2013 09:50:19 GMT</pubDate>
    <dc:creator>LadislavVadkerti</dc:creator>
    <dc:date>2013-05-16T09:50:19Z</dc:date>
    <item>
      <title>Chip select issue with SPIMaster_LDD</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Chip-select-issue-with-SPIMaster-LDD/m-p/240323#M1309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working on an application that talks to to 4 different peripheral chips using a shared SPI bus. I have configured a SPIMaster_LDD component for this. In the process of troubleshooting some strange behavior I found what looks like an error in the PE generated code. In SelectConfiguration the chip select bit is setup with the following line of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;((STEP_SPI_TDeviceDataPtr)DeviceDataPtr)-&amp;gt;TxCommand = 0x80010000U | CSToMask[ChipSelect]; /* Prepare command for transmision */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with this is that the PCS0 bit is always getting set, resulting in more than one CS signal being asserted. If I manually change the line to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;((STEP_SPI_TDeviceDataPtr)DeviceDataPtr)-&amp;gt;TxCommand = 0x80000000U | CSToMask[ChipSelect]; /* Prepare command for transmision */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;everything works as expected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've looked through the component options and don't see anyway to turn this off. If I change the "Initial chip select" option, then the mask changes, but I haven't found a way to set it to zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing something, or is this a bug?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ~Dave&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cpu: MK20DX256VLQ10&lt;/P&gt;&lt;P&gt; - CodeWarrior for MCU&lt;/P&gt;&lt;P&gt;&amp;nbsp; Version: 10.3&lt;/P&gt;&lt;P&gt;&amp;nbsp; Build Id:121211&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 17:47:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Chip-select-issue-with-SPIMaster-LDD/m-p/240323#M1309</guid>
      <dc:creator>davidschroeder</dc:creator>
      <dc:date>2013-05-15T17:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Chip select issue with SPIMaster_LDD</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Chip-select-issue-with-SPIMaster-LDD/m-p/240324#M1310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, this is a bug in the SPIMaster_LDD component. Thank you for reporting it. The fix is available in &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-MCU10&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;CodeWarrior V10.4&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ladislav Vadkerti&lt;/P&gt;&lt;P&gt;Freescale, Processor Expert team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 09:50:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Chip-select-issue-with-SPIMaster-LDD/m-p/240324#M1310</guid>
      <dc:creator>LadislavVadkerti</dc:creator>
      <dc:date>2013-05-16T09:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Chip select issue with SPIMaster_LDD</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Chip-select-issue-with-SPIMaster-LDD/m-p/240325#M1311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ladislav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added SPIMASTER_LDD component to processorExpert.pe in bsp_twrk60n512.&lt;/P&gt;&lt;P&gt;I have set the configuration and generated the code also, can you please guide how to replace&lt;/P&gt;&lt;P&gt;the existing spi driver in MQX 4.0.0 and use the new generated SPI driver? Am using CW10.3&lt;/P&gt;&lt;P&gt;Intention is to use PE LDD driver instead of the existing SPI driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;GR.Venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 12:18:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Chip-select-issue-with-SPIMaster-LDD/m-p/240325#M1311</guid>
      <dc:creator>venkateshgr</dc:creator>
      <dc:date>2013-05-23T12:18:27Z</dc:date>
    </item>
  </channel>
</rss>

