<?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 SPI not supported in CGU? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-not-supported-in-CGU/m-p/567317#M17499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DT1 on Tue Jun 03 09:39:48 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm currently writing a driver to support the SPI module of the LPC4357 since it doesn't seem to be existant in the periph library (no driver, no examples). Before somebody suggest that SPI is SSP, I know. I'm using both SSP ports currently (in SPI) and it's working fine. But I also need to make the SPI port working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've noticed that the clocking is not supported in the CGU driver of the periph library. According to the LPC4357 User Manual, the SPI clock branch is just after the SPIFI, but in the CGU code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
...
0x6C,//CGU_BASE_M4,
0x70,//CGU_BASE_SPIFI,
-1,//CGU_BASE_RESERVE,
0x78,//CGU_BASE_PHY_RX,
...
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
...
CGU_BASE_M4,/**&amp;lt; ARM Cortex-M4 Core base clock */
CGU_BASE_SPIFI,/**&amp;lt; SPIFI base clock*/
CGU_BASE_PHY_RX = CGU_BASE_SPIFI + 2, /**&amp;lt; Ethernet PHY Rx base clock*/
CGU_BASE_PHY_TX,/**&amp;lt; Ethernet PHY Tx base clock*/
...
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm wondering why the SPI module seems to be missing everywhere. Is it functional?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DT1&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:54:40 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:54:40Z</dc:date>
    <item>
      <title>SPI not supported in CGU?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-not-supported-in-CGU/m-p/567317#M17499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DT1 on Tue Jun 03 09:39:48 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm currently writing a driver to support the SPI module of the LPC4357 since it doesn't seem to be existant in the periph library (no driver, no examples). Before somebody suggest that SPI is SSP, I know. I'm using both SSP ports currently (in SPI) and it's working fine. But I also need to make the SPI port working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've noticed that the clocking is not supported in the CGU driver of the periph library. According to the LPC4357 User Manual, the SPI clock branch is just after the SPIFI, but in the CGU code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
...
0x6C,//CGU_BASE_M4,
0x70,//CGU_BASE_SPIFI,
-1,//CGU_BASE_RESERVE,
0x78,//CGU_BASE_PHY_RX,
...
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
...
CGU_BASE_M4,/**&amp;lt; ARM Cortex-M4 Core base clock */
CGU_BASE_SPIFI,/**&amp;lt; SPIFI base clock*/
CGU_BASE_PHY_RX = CGU_BASE_SPIFI + 2, /**&amp;lt; Ethernet PHY Rx base clock*/
CGU_BASE_PHY_TX,/**&amp;lt; Ethernet PHY Tx base clock*/
...
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm wondering why the SPI module seems to be missing everywhere. Is it functional?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DT1&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:54:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-not-supported-in-CGU/m-p/567317#M17499</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: SPI not supported in CGU?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-not-supported-in-CGU/m-p/567318#M17500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by rocketdawg on Tue Jun 03 12:25:24 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;well I see both&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;spi_18xx_43xx.h&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ssp_18xx_43xx.h&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in the lpc_chip_43xx/inc&amp;nbsp; directory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and I see the source file in &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lpc_chip_43xx/src/spi_18xx_43xx.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;looks like it is supported in LPCOpen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:54:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-not-supported-in-CGU/m-p/567318#M17500</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: SPI not supported in CGU?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-not-supported-in-CGU/m-p/567319#M17501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DT1 on Wed Jun 04 21:57:59 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Indeed, that helped. I'm not using LPCOpen that's why I didn't see it at first.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I coded my own SPI driver (like the periph lib) based on the files you mentioned and everything works fine. Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:54:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-not-supported-in-CGU/m-p/567319#M17501</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:54:41Z</dc:date>
    </item>
  </channel>
</rss>

