<?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 about libraries in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/about-libraries/m-p/591766#M29735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Hyla on Thu Mar 15 07:43:58 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;as an (eternal) beginner I am relying heavily on available examples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the Code Red compiler and have downloaded various demo sources for LPCXpresso 1343, 1114 and 1769. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For the latter I have examples that include and depend on a suite of periphery drivers that are named "lpc17xx_pinsel.c", "lpc17xx_ssp.c", "lpc17xx_gpio.c" and so on. Other sources use different periphery driver files, e.g. called "gpio.c" or "ssp.c". These two drivers sets are not compatible, it's either or. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since both seem to have their origin at NXP: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the "correct" driver suite to use? Why are there two different versions? And the most interesting question: Where are the equivalent driver files for the two other chips I mentioned?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried to find a file "lpc13xx_pinsel.c" for quite some time now without success ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could anybody please enlighten me here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Christoph&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:54:47 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:54:47Z</dc:date>
    <item>
      <title>about libraries</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/about-libraries/m-p/591766#M29735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Hyla on Thu Mar 15 07:43:58 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;as an (eternal) beginner I am relying heavily on available examples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the Code Red compiler and have downloaded various demo sources for LPCXpresso 1343, 1114 and 1769. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For the latter I have examples that include and depend on a suite of periphery drivers that are named "lpc17xx_pinsel.c", "lpc17xx_ssp.c", "lpc17xx_gpio.c" and so on. Other sources use different periphery driver files, e.g. called "gpio.c" or "ssp.c". These two drivers sets are not compatible, it's either or. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since both seem to have their origin at NXP: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the "correct" driver suite to use? Why are there two different versions? And the most interesting question: Where are the equivalent driver files for the two other chips I mentioned?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried to find a file "lpc13xx_pinsel.c" for quite some time now without success ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could anybody please enlighten me here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Christoph&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:54:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/about-libraries/m-p/591766#M29735</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: about libraries</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/about-libraries/m-p/591767#M29736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Thu Mar 15 10:45:08 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;What is the "correct" driver suite to use?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Use whatever you want, there's no black or white :rolleyes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would suggest to use examples in LPCXpresso/example folder. Unfortunately even they are often not up to date and has to be changed to CMSIS V2.00. So the best way is to use project wizard and start a new project (with actual CMSIS) and include source and header files you need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Why are there two different versions?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Because there's no version police and samples have been changed :(&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;And the most interesting question: Where are the equivalent driver files for the two other chips I mentioned?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Since these chips have different registers there are different drivers for each chip. I don't know which chip you are using, but in general I would suggest to avoid these drivers for simple things like GPIO and write/read registers direct. Reading about this registers in UM will help you to understand how they work and which of them are used in different chips. Also I would suggest to start with one MCU and get familiar with it (and LPCXpresso) before different registers of different chips confuse you :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:54:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/about-libraries/m-p/591767#M29736</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: about libraries</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/about-libraries/m-p/591768#M29737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Hyla on Thu Mar 15 12:16:05 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for Your answer, Zero.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, let me put it this way. My life on earth is somewhat limited, I'm nearing the fifties ;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I cannot possibly learn all this from (no pun intended) zero. If I ever want to achieve something practical I'll have to use stuff like prefabricated libraries and there's nothing wrong in that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What I'm interested in is simply: which version seems to You to be the most promising way to go on? The "lpc17xx_"-type &lt;/SPAN&gt;&lt;A href="http://http://ics.nxp.com/support/documents/microcontrollers/zip/lpc17xx.cmsis.driver.library.zip"&gt;device drivers &lt;/A&gt;&lt;SPAN&gt;seem to be newer than their counter parts that come with the Code Red distribution (?). And the code I've got that uses them is working well. On the other hand I have not been able to find "lpc13xx_" or "lpc11xx_" versions of the drivers. Which I would need to re-use my code with other chips.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do they exist [I]at all[/I]? If not - why? :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt; &lt;BR /&gt;I would suggest to use examples in LPCXpresso/example folder. Unfortunately even they are often not up to date and has to be changed to CMSIS V2.00. &lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ah. Well. I'm a great expert already in converting CMSIS V1.3 into CMSIS V2.0 projects ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt; Also I would suggest to start with one MCU and get familiar with it (and LPCXpresso) before different registers of different chips confuse you :)&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, once a certain level of confusion is reached it simply doesn't matter anymore.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ignorance [I]is[/I] bliss, You know :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Christoph&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:54:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/about-libraries/m-p/591768#M29737</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: about libraries</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/about-libraries/m-p/591769#M29738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Fri Mar 16 02:10:17 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;...which version seems to You to be the most promising way to go on?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;I like simple projects with included sources because I tend to change a lot things. So I can keep problems local without mutilating a general driver library :rolleyes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise a general library is easy to use and a good point to start. But anyway, you don't want to waste too much time so just use whatever is working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;On the other hand I have not been able to find "lpc13xx_" or "lpc11xx_" versions of the drivers.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;AFAIK they can't be downloaded as package :(&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Do they exist at all?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Yes, they exist :) Some samples include them (in driver folder) like LPC11C24 sample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://ics.nxp.com/support/documents/microcontrollers/zip/lpcxpresso.examples.lpc11c24.zip&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://"&gt;http://ics.nxp.com/support/lpcxpresso/#Examples&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;If not - why?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;That's a NXP question. Don't know why they don't add a download link :mad:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: You can also google around and try to find other libs like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://www.microbuilder.eu/Projects/LPC1343ReferenceDesign/LPC1343CodeBase.aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://www.microbuilder.eu/Projects/LPC1114ReferenceDesign/LPC1114CodeBase.aspx&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:54:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/about-libraries/m-p/591769#M29738</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:54:49Z</dc:date>
    </item>
  </channel>
</rss>

