<?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>LPCXpresso IDEのトピックRe: Trouble with very simple program LPC1227</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549256#M10902</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 Mon Oct 03 06:12:11 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: jab&lt;/STRONG&gt;&lt;BR /&gt; Can I program my board with the LPCxpresso board too as well as debug it?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, a simple 4-wire SWD connector will do that :eek::eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See #9 of: &lt;/SPAN&gt;&lt;A href="http://"&gt;http://knowledgebase.nxp.com/showthread.php?p=8227&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:28:58 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:28:58Z</dc:date>
    <item>
      <title>Trouble with very simple program LPC1227</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549243#M10889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jab on Fri Sep 30 06:57:29 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have built our own custom cortex M0 development board and we are having some issues with writing code for it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The bootloader works fine, we can get the part number etc off the chip so we know the chip is working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our code is simple, it just toggles the pull up resistor enable on a GPIO pin (a very minimal test). We have this pin then connected to an oscilloscope. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CODE BELOW&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;----------------------------------------&lt;/SPAN&gt;&lt;BR /&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; Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : main.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Author&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Copyright&amp;nbsp;&amp;nbsp; : Copyright (C) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Description : main definition&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;BR /&gt;&lt;SPAN&gt;#ifdef __USE_CMSIS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#include "LPC122x.h"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#include &amp;lt;cr_section_macros.h&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#include &amp;lt;NXP/crp.h&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Variable to store CRP value in. Will be placed automatically&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// by the linker when "Enable Code Read Protect" selected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// See crp.h header for more information&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;__CRP const unsigned int CRP_WORD = CRP_NO_CRP ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// TODO: insert other include files here&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// TODO: insert other definitions and declarations here&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define __DISABLE_WATCHDOG 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;int main(void) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned long Test1 = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_IOCON-&amp;gt;PIO0_0 = Test1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO: insert code here&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Test1 == 0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Test1 = 16;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Test1 = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_IOCON-&amp;gt;PIO0_0 = Test1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0 ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All we do is toggle bit 4 in the IOCON register for GPIO0_0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have LPCxpresso generating a hex file which we then download using flash magic, here are the post build commands.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arm-none-eabi-objcopy -O binary ${BuildArtifactFileName} ${BuildArtifactFileBaseName}.bin;&amp;nbsp; checksum -v ${BuildArtifactFileBaseName}.bin; arm-none-eabi-objcopy -I binary ${BuildArtifactFileBaseName}.bin -O ihex ${BuildArtifactFileBaseName}.hex;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The strange thing is, if I just disable the pullup once the line pulls low correctly, but it doesnt toggle. I have also tried to use the IO properly, writing to the out register but that didnt work, figured this program was easier to post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The system is configured to use the internal RC osc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help in advance, I feel like I have been banging my head against a brick wall for several hours!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Julian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:28:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549243#M10889</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with very simple program LPC1227</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549244#M10890</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 Sep 30 07:21:20 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;All we do is toggle bit 4 in the IOCON register for GPIO0_0. :confused::confused:&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;WHY :confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You are full speed toggling pull-up bit??&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use DIR register to set output direction&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
 LPC_GPIO0-&amp;gt;DIR |= (1&amp;lt;&amp;lt;0); //high = output
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;and SET and CLR register to set or clear&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
 LPC_GPIO0-&amp;gt;SET = (1&amp;lt;&amp;lt;0); //set high
 LPC_GPIO0-&amp;gt;CLR = (1&amp;lt;&amp;lt;0); //set low
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;or PIN change output value:&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_GPIO0-&amp;gt;PIN ^= (1&amp;lt;&amp;lt;0); //toggle
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;And don't forget: without loop you are toggling very fast :eek:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:28:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549244#M10890</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with very simple program LPC1227</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549245#M10891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jab on Fri Sep 30 13:19:45 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried it setting the dir bit etc, didnt work so pull up was the last resort as a sanity check.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Toggling at full speed isnt a problem, have a 2gs/s osc scope available. Just trying to get the chip to do anything remotely useful. Otherwise it might have been damaged during reflow....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:28:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549245#M10891</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with very simple program LPC1227</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549246#M10892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by OXO on Fri Sep 30 13:28:19 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;What is there to pull it low when the pullup is disabled? if you're doing this at full speed, then the capacitance of the pin and the scope probe will probably keep it high..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:28:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549246#M10892</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with very simple program LPC1227</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549247#M10893</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 Sep 30 13:32:05 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: jab&lt;/STRONG&gt;&lt;BR /&gt;Otherwise it might have been damaged during reflow....&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't think so, this chips are not easy to destroy. If your bootloader is working, it can't be complete destroyed. Simplest test is to use debugger peripherals to set / reset a pin :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:28:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549247#M10893</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with very simple program LPC1227</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549248#M10894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jab on Fri Sep 30 21:00:23 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: OXO&lt;/STRONG&gt;&lt;BR /&gt;What is there to pull it low when the pullup is disabled? if you're doing this at full speed, then the capacitance of the pin and the scope probe will probably keep it high..&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the pullup was disabled the pin did go low, it just didnt toggle, it just went once and stopped. It looked like it was running the initialization code but not the code in the loop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also didnt think it was damaged because the bootloader works, just unsure. Tried loading a sample program from the CMSIS examples provided by NXP, the blinky code didnt seem to be working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will have another go on monday when I am back in the lab. I am sure I missed something simple somewhere, been a long week....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:28:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549248#M10894</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with very simple program LPC1227</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549249#M10895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jab on Mon Oct 03 04:45:07 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Okay...this is the code I tested this morning:&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;
/*
===============================================================================
 Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : main.c
 Author&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 
 Version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :
 Copyright&amp;nbsp;&amp;nbsp; : Copyright (C) 
 Description : main definition
===============================================================================
*/

#ifdef __USE_CMSIS
#include "LPC122x.h"
#endif

#include &amp;lt;cr_section_macros.h&amp;gt;
#include &amp;lt;NXP/crp.h&amp;gt;

// Variable to store CRP value in. Will be placed automatically
// by the linker when "Enable Code Read Protect" selected.
// See crp.h header for more information
__CRP const unsigned int CRP_WORD = CRP_NO_CRP ;

// TODO: insert other include files here

// TODO: insert other definitions and declarations here
#define __DISABLE_WATCHDOG 1

int main(void) {

&amp;nbsp;&amp;nbsp;&amp;nbsp; // Disable the pullup on GPIO0_0
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_IOCON-&amp;gt;PIO0_0 = 0x00;
&amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO: insert code here
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_GPIO0-&amp;gt;DIR = 0xFFFFFFFF;

&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_GPIO0-&amp;gt;NOT = 0x00000001;

&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0 ;
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I disable the pullup on GPIO0_0, set the direction to output for the whole of GPIO0 and then invert the LSB of GPIO0 in the loop. Oscilloscpoe attached to the output shows the output go low but nothing else, to me it looks like the code in the loop isnt being executed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have started a new project, using the LPCxpresso defaults for my project, I alter the project to generate a hex file and use flash magic to download the code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help guys? Have I missed something simple?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:28:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549249#M10895</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with very simple program LPC1227</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549250#M10896</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 Mon Oct 03 05:05:36 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;#1 Is there a special reason why you don't use LPCXpresso debugger?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#2 Could be a good idea to slow down you toggling with a loop :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#3 Try other pins (perhaps this pin is really damaged) :):)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#4 Reset your&amp;nbsp; mask register (although it should be 0x00).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:28:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549250#M10896</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with very simple program LPC1227</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549251#M10897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jab on Mon Oct 03 05:12:33 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;We have designed a custom board and no debugger hardware so we cant use the debugger. (or so I believe)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried another pin and still nothing,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the pin is being pulled low which makes me believe the pull up is being disabled. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will try slowing down the loop.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:28:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549251#M10897</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with very simple program LPC1227</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549252#M10898</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 Mon Oct 03 05:29:17 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: jab&lt;/STRONG&gt;&lt;BR /&gt;We have designed a custom board and no debugger hardware so we cant use the debugger. (or so I believe)&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then kick 'We' in the... and buy a LPCXpresso, connect SWD and debug, otherwise you will spend a lot of time with guessing :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: jab&lt;/STRONG&gt;&lt;BR /&gt;the pin is being pulled low which makes me believe the pull up is being disabled&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Output pins shouldn't care about pull-up :eek::eek:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:28:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549252#M10898</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with very simple program LPC1227</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549253#M10899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jab on Mon Oct 03 05:30:52 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I ran the UART_small printf example as I remembered I had run it as a test on a previous board (long ago).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The sample works which would indicate that chip is working, just will find out what the difference is between my startup code and the sample project. I am sure there must be an incorrect build setting somewhere maybe.....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:28:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549253#M10899</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with very simple program LPC1227</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549254#M10900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jab on Mon Oct 03 05:50:11 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I was told to design this custom board by my manager, so there wasnt much choice there. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We do however have a visiting professor from ARM working with us (although he isnt around right now). I might be able to get a debugger from him once he returns (i think he is on sabbatical at the moment)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought the pullups would work on the outputs too since you can then do stuff like bitbang i2c (i know there are i2c controllers on this chip but just an example).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It might be then that the pin is being set to output so thats why it toggles low.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ah wait, no I understand, get an LPCxpresso board and use the debugger on that connected to this board...DOH! very sorry not really with it today!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have gotten financial approval to order an Xpresso board. Which is awesome and it has been ordered :-) Can I program my board with the LPCxpresso board too as well as debug it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:28:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549254#M10900</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with very simple program LPC1227</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549255#M10901</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 Mon Oct 03 06:02:24 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't know which experts and manager you have around there, but everyone who tries to work without debugger is an idiot and wasting a lot of time and money :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since LPCXpresso isn't very expensive this behaviour is even more idiotic :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And last not least you are responsible for your work and sooner or later someone will kick you....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:28:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549255#M10901</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with very simple program LPC1227</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549256#M10902</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 Mon Oct 03 06:12:11 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: jab&lt;/STRONG&gt;&lt;BR /&gt; Can I program my board with the LPCxpresso board too as well as debug it?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, a simple 4-wire SWD connector will do that :eek::eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See #9 of: &lt;/SPAN&gt;&lt;A href="http://"&gt;http://knowledgebase.nxp.com/showthread.php?p=8227&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:28:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549256#M10902</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with very simple program LPC1227</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549257#M10903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jab on Mon Oct 03 06:34:25 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Nah I just work at a university and there isnt a whole lot of money around. Most chips use normal JTAG and we have those we just dont have one which can do the arm two wire debug thing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Plus I didnt realkly know about the LPCxpresso stuff before this, we usually use ARM Realview but it is a bit excessive for this type of thing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:28:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549257#M10903</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with very simple program LPC1227</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549258#M10904</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 Mon Oct 03 06:52:10 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: jab&lt;/STRONG&gt;&lt;BR /&gt;Nah I just work at a university...&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then someone there should know that today a lot of manufacturers are supporting cheap tools :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can't believe that your universities and profs are so slow as in Germany...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:28:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549258#M10904</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with very simple program LPC1227</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549259#M10905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jab on Mon Oct 03 07:15:07 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;Then someone there should know that today a lot of manufacturers are supporting cheap tools :eek:&lt;BR /&gt;&lt;BR /&gt;Can't believe that your universities and profs are so slow as in Germany...&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alas my supervisor/manager is not around much at the moment (busy running around trying to get me a new contract so I can stay employed :p).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just not many people here work with 32bit uC's mainly pics and AVR's for low power stuff OR they are busy/cant be bothered to help. I thought when I became staff certain people might be more helpful but alas no..not the case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, I have solved my problem. I looked at the blinky example code and noticed a line at the top:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL |= 0xE001001FUL;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;which is writing an Unsigned long to the sysahbclkctrl register. It appears that this turns on the clocks for the IOCON block and the GPIO's. It says the reset value is already enabled but maybe something has changed (i.e. the documentation is wrong?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems to be working now and I can run many examples....it is all a bit odd!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:28:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549259#M10905</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with very simple program LPC1227</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549260#M10906</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 Mon Oct 03 07:36:20 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: jab&lt;/STRONG&gt;&lt;BR /&gt;...new contract so I can stay employed...&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: jab&lt;/STRONG&gt;&lt;BR /&gt;Just not many people here work with 32bit uC's...&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's your chance :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:29:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549260#M10906</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with very simple program LPC1227</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549261#M10907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ratiafak on Sat Sep 15 13:52:45 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: jab&lt;/STRONG&gt;&lt;BR /&gt;LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL |= 0xE001001FUL;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Same problem. It apears documentation is wrong and noone bothers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:29:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Trouble-with-very-simple-program-LPC1227/m-p/549261#M10907</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:29:01Z</dc:date>
    </item>
  </channel>
</rss>

