<?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 SWD dowloading and GPIO pins LPCXPresso LPC1114 in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/SWD-dowloading-and-GPIO-pins-LPCXPresso-LPC1114/m-p/594494#M30983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Vit_Ciola on Wed Nov 23 06:33:07 MST 2011&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;This is my first project with the LPCXpresso 1114, and during the development I'm facing some problems:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-I did a schematic based on the LPCXpresso target board. Im using the SWD interface, so it is mandatory to have the external cristal? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-I selected some pins, that in the silk are printed with other functions with the other functions like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; -P0_1 - FT/GPIO;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; -P0_4 - I2C - SDA;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; -P0_5 - I2C - SCL;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; -P0_8 - MISO;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; -P1_4 - AD5;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; -P1_6 - RXD;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the CMSIS function GPIOSetDir, but with these pins I couldnt set as an IO.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know what can I be doing wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 01:30:35 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T01:30:35Z</dc:date>
    <item>
      <title>SWD dowloading and GPIO pins LPCXPresso LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SWD-dowloading-and-GPIO-pins-LPCXPresso-LPC1114/m-p/594494#M30983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Vit_Ciola on Wed Nov 23 06:33:07 MST 2011&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;This is my first project with the LPCXpresso 1114, and during the development I'm facing some problems:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-I did a schematic based on the LPCXpresso target board. Im using the SWD interface, so it is mandatory to have the external cristal? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-I selected some pins, that in the silk are printed with other functions with the other functions like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; -P0_1 - FT/GPIO;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; -P0_4 - I2C - SDA;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; -P0_5 - I2C - SCL;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; -P0_8 - MISO;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; -P1_4 - AD5;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; -P1_6 - RXD;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the CMSIS function GPIOSetDir, but with these pins I couldnt set as an IO.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know what can I be doing wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:30:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SWD-dowloading-and-GPIO-pins-LPCXPresso-LPC1114/m-p/594494#M30983</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: SWD dowloading and GPIO pins LPCXPresso LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SWD-dowloading-and-GPIO-pins-LPCXPresso-LPC1114/m-p/594495#M30984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Rob65 on Wed Nov 23 07:09:40 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;No, you do not need an external crystal - that's the nice thing on these chips: you can use either internal RC oscillator or external resonator/crystal. Just make sure that your software environment does not try to use the main (crystal) oscillator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Vit_Ciola&lt;/STRONG&gt;&lt;BR /&gt;Do you know what can I be doing wrong?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not giving us enough info to answer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't find any function named GPIOSetDir in my CMSIS project and on my chip I/O pins are either input or output, not IO.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please explain what you are trying to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:30:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SWD-dowloading-and-GPIO-pins-LPCXPresso-LPC1114/m-p/594495#M30984</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: SWD dowloading and GPIO pins LPCXPresso LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SWD-dowloading-and-GPIO-pins-LPCXPresso-LPC1114/m-p/594496#M30985</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 Wed Nov 23 07:10:27 MST 2011&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;-I did a schematic based on the LPCXpresso target board. Im using the SWD interface, so it is mandatory to have the external cristal? &lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No. it's not. But I would strongly suggest to include it, if you are drawing your own board. A small SMD crystal and 2 caps are not very space consuming.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And if you don't need it today, just don't solder it in. Perhaps you are happy some day that there's a place for them left on your board...&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;but with these pins I couldnt set as an IO.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just read UM10398 Chapter 7: LPC111x/LPC11Cxx I/O configuration (IOCONFIG)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Default pin function isn't always GPIO, so don't forget to set I/O configuration registers&amp;nbsp; :eek:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:30:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SWD-dowloading-and-GPIO-pins-LPCXPresso-LPC1114/m-p/594496#M30985</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: SWD dowloading and GPIO pins LPCXPresso LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SWD-dowloading-and-GPIO-pins-LPCXPresso-LPC1114/m-p/594497#M30986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Vit_Ciola on Wed Nov 23 09:10:20 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;No. it's not. But I would strongly suggest to include it, if you are drawing your own board. A small SMD crystal and 2 caps are not very space consuming.&lt;BR /&gt;And if you don't need it today, just don't solder it in. Perhaps you are happy some day that there's a place for them left on your board...&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000] &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/COLOR][/SIZE][/COLOR][/SIZE]&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Rob65&lt;/STRONG&gt;&lt;BR /&gt;No, you do not need an external crystal - that's the nice thing on these chips: you can use either internal RC oscillator or external resonator/crystal. Just make sure that your software environment does not try to use the main (crystal) oscillator.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok. In my board I didnt put the cristal (schematic is attached), so it should work the SWD debug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But it's not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Im using the LPCXpresso v 4.0.5, when I try to debug the software apparently is downloaded to the micro, with the following messages in the console:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][COLOR=red] [/COLOR][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][SIZE=2][COLOR=red]set remotetimeout 60000[/COLOR][/SIZE][/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[COLOR=#ff0000][COLOR=#ff0000][LEFT][SIZE=2]mon ondisconnect cont[/SIZE][/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2]set arm force-mode thumb[/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/COLOR][/COLOR] &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I analyze the signals in the port, they are not the same as in the LPCXpresso 1114 target. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PS: I physically cut the communication between the LPC-Link and Target.&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;Just read UM10398 Chapter 7: LPC111x/LPC11Cxx I/O configuration (IOCONFIG)&lt;BR /&gt; &lt;BR /&gt;Default pin function isn't always GPIO, so don't forget to set I/O configuration registers :eek:&lt;/SPAN&gt;&lt;HR /&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: Rob65&lt;/STRONG&gt;&lt;BR /&gt; &lt;BR /&gt;Not giving us enough info to answer?&lt;BR /&gt; &lt;BR /&gt;I can't find any function named GPIOSetDir in my CMSIS project and on my chip I/O pins are either input or output, not IO.&lt;BR /&gt;Please explain what you are trying to do.&lt;BR /&gt; &lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I read the chapter 7, and I understood that I have to change the register IOCONFIG, but I couldnt found this register in the software...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What I did was to use the function GPIOSetDir ( which I took from the gpio.c file, blink example).&amp;nbsp; To select some ports as Input and others as Output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][LEFT]void[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [B]GPIOSetDir[/B]( [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] portNum, [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] bitPosi, [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] dir )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]if[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2](dir)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[U]LPC_GPIO[/U][portNum]-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]DIR[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] |= 1&amp;lt;&amp;lt;bitPosi;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]else[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT]LPC_GPIO[portNum]-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]DIR[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] &amp;amp;= ~(1&amp;lt;&amp;lt;bitPosi);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][B]#endif[/B]&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;SPAN&gt;[SIZE=3][COLOR=black]This is not part of the IOCONFIG register right?[/COLOR][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/COLOR][/SIZE][/COLOR][/SIZE]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:30:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SWD-dowloading-and-GPIO-pins-LPCXPresso-LPC1114/m-p/594497#M30986</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: SWD dowloading and GPIO pins LPCXPresso LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SWD-dowloading-and-GPIO-pins-LPCXPresso-LPC1114/m-p/594498#M30987</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 Wed Nov 23 10:39:33 MST 2011&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;when I try to debug the software apparently is downloaded to the micro...&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Schematic:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#1 What's your Reset pullup value?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#2 Where's your ISP pullup?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Scope ISP (PI0_1) and Reset. If ISP is longer low than Reset, you're in ISP mode :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So your ISP pullup should be equal or lower than Reset pullup &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#3 Did you check your SystemInit? Did you change your clock source to IRC there?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IOCONFIG:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Try something like this:&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;
 LPC_IOCON-&amp;gt;PIO0_8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;= ~0x07;&amp;nbsp;&amp;nbsp; //reset
 LPC_IOCON-&amp;gt;PIO0_8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |= 0x01;&amp;nbsp;&amp;nbsp;&amp;nbsp; //set
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:30:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SWD-dowloading-and-GPIO-pins-LPCXPresso-LPC1114/m-p/594498#M30987</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: SWD dowloading and GPIO pins LPCXPresso LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SWD-dowloading-and-GPIO-pins-LPCXPresso-LPC1114/m-p/594499#M30988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Rob65 on Wed Nov 23 11:02:00 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Schematics ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looks like you are using Eagle ? Hint: If you do a right click on your components and select "Smash" the value and name fields of components can be moved independent from the component itself - this gives you the option to move them to a location where you can actually read the values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The connector SL6 is connected to the LPC-Link's JP4 as follows (I think):[INDENT] SL6.1 - JP4.15&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SL6.3 - JP4.11&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SL6.4 - JP4.7&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SL6.5 - JP4.5&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SL6.6 - JP4.3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Vit_Ciola&lt;/STRONG&gt;&lt;BR /&gt;[SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]&lt;BR /&gt;[SIZE=3][COLOR=black]This is not part of the IOCONFIG register right?[/COLOR][/SIZE]&lt;BR /&gt;[/COLOR][/SIZE][/COLOR][/SIZE]&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Correct. The IOCONFIG registers are bundled in the LPC_IOCON structure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So the register for P0.1 is LPC_IOCON-&amp;gt;PIO0_1 etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are not sure you can always check the inc/LPC11xx.h file in the CMSIS project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:30:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SWD-dowloading-and-GPIO-pins-LPCXPresso-LPC1114/m-p/594499#M30988</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: SWD dowloading and GPIO pins LPCXPresso LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SWD-dowloading-and-GPIO-pins-LPCXPresso-LPC1114/m-p/594500#M30989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Vit_Ciola on Wed Nov 23 11:41:40 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The Reset Pull-up value is 12k.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually there is no Pull-up for the P0_1. I'm trying&amp;nbsp; to use it as an output, it is connected with driver which will feed the motor, I'll force a pull-up externally.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But in the LPCXpresso board this pin is not pulled-up right?&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;#3 Did you check your SystemInit? Did you change your clock source to IRC there?&lt;BR /&gt; &lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So to select the IRC source I should change the [SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]MAINCLKSEL&amp;nbsp; [SIZE=3][COLOR=#000000]to 0x00?[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE] &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE] &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][LEFT]switch[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] (LPC_SYSCON-&amp;gt;[/COLOR][/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]MAINCLKSEL[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] &amp;amp; 0x03) {[/COLOR]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]case[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] 0: [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* Internal RC oscillator */[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT]SystemCoreClock = __IRC_OSC_CLK;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]break[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]case[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] 1: [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* Input Clock to System PLL */[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT][/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]switch[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (LPC_SYSCON-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]SYSPLLCLKSEL[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] &amp;amp; 0x03) { .........[/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][/SIZE] &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][/SIZE] &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2] [/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][/COLOR][/SIZE][/COLOR][/SIZE]Regarding the IOCONFIG register:&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;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
 LPC_IOCON-&amp;gt;PIO0_8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;= ~0x07;&amp;nbsp;&amp;nbsp; //reset
 LPC_IOCON-&amp;gt;PIO0_8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |= 0x01;&amp;nbsp;&amp;nbsp;&amp;nbsp; //set
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set do you mean eneable as a GPIO Pin? Not set the output pin, right?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:30:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SWD-dowloading-and-GPIO-pins-LPCXPresso-LPC1114/m-p/594500#M30989</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: SWD dowloading and GPIO pins LPCXPresso LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SWD-dowloading-and-GPIO-pins-LPCXPresso-LPC1114/m-p/594501#M30990</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 Wed Nov 23 12:32:34 MST 2011&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;Actually there is no Pull-up for the P0_1.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Beginner mistake :rolleyes:&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;But in the LPCXpresso board this pin is not pulled-up right?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Yes, if you're lucky, you don't need it. If you connect something to this pin, your luck is over...&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;So to select the IRC source I should change the MAINCLKSEL to 0x00?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;No. This settings are done in system_LPC11xx.c via #defines&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;
#define SYSPLLCLKSEL_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;is default setting for System Oscillator. Change it to 0 for IRC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you change MAINCLKSEL to IRC, you are working with 12MHz main clock (=IRC) and without PLL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you change SYSPLLCLKSEL your PLL is changing input source, but generating 48MHz main clock via PLL.&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;Set do you mean eneable as a GPIO Pin? Not set the output pin, right? &lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;No, in this case user manual shows pin function 1 = MISO0. You have to check pin functions in chapter 7 :eek:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:30:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SWD-dowloading-and-GPIO-pins-LPCXPresso-LPC1114/m-p/594501#M30990</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: SWD dowloading and GPIO pins LPCXPresso LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SWD-dowloading-and-GPIO-pins-LPCXPresso-LPC1114/m-p/594502#M30991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Vit_Ciola on Thu Nov 24 05:27:13 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Now it's working!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot Zero and Rob65 for these very usefull tips!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:30:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SWD-dowloading-and-GPIO-pins-LPCXPresso-LPC1114/m-p/594502#M30991</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: SWD dowloading and GPIO pins LPCXPresso LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SWD-dowloading-and-GPIO-pins-LPCXPresso-LPC1114/m-p/594503#M30992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Vit_Ciola on Thu Nov 24 05:28:29 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Now it's working!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot Zero and Rob65 for these very usefull tips!:D&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:30:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SWD-dowloading-and-GPIO-pins-LPCXPresso-LPC1114/m-p/594503#M30992</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:30:41Z</dc:date>
    </item>
  </channel>
</rss>

