<?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: Mysterious puzzling LPCXpresso</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Mysterious-puzzling-LPCXpresso/m-p/588332#M28086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Fri Jun 24 01:56:25 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Blinky makes use of the CMSIS headers and library, so you need to ensure that you have the version of the CMSIS project that appropriate for your target also present in your workspace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the file where you are trying to test GPIOSetValue, just use&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;
#include "gpio.h"
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;which defines GPIOSetValue for you - you don't need to do anything else.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:45:31 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:45:31Z</dc:date>
    <item>
      <title>Mysterious puzzling LPCXpresso</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Mysterious-puzzling-LPCXpresso/m-p/588329#M28083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Smitjs on Thu Jun 23 19:12:17 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Using LPC11C14, losing 2 IO pins because LPC1114 was not available.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am totally new to LPCXpresso, and obviously my C knowledge is lacking.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. How to get rid of the welcome screen? I know it has been fully registered by now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I imported the blinky example to another directory I need to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; work in. Then to use CMSIS is a dark mystery. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Where in the directory structure must which files of CMSIS be?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I rather imported the CMSIS c and h files into the project src directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Now I can compile without errors, and the problem starts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I tried to add another c file to test GPIOsetValue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#ifndef __GPIO_H&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#include "gpio.h"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;extern void GPIOSetValue( uint32_t portNum, uint32_t bitPosi, uint32_t bitVal );&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;GPIOSetValue( LED_PORT,&amp;nbsp; LED_BIT, LED_ON );&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then get the following errors:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;../src/Slave.c:13: warning: data definition has no type or storage class&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;../src/Slave.c:13: warning: type defaults to 'int' in declaration of 'GPIOSetValue'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;../src/Slave.c:13: warning: parameter names (without types) in function declaration&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;../src/Slave.c:13: error: conflicting types for 'GPIOSetValue'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;../src/gpio.h:22: error: previous declaration of 'GPIOSetValue' was here&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make: *** [src/Slave.o] Error 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;GPIOSetValue is declared in gpio.h&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void GPIOSetValue( uint32_t portNum, uint32_t bitPosi, uint32_t bitVal );&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;GPIOSetValue is declared once only, and should be visible in slave.c.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please solve this mysterious puzzle.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Johan Smit&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:45:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Mysterious-puzzling-LPCXpresso/m-p/588329#M28083</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Mysterious puzzling LPCXpresso</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Mysterious-puzzling-LPCXpresso/m-p/588330#M28084</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 Jun 23 19:44:26 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Menu Window-&amp;gt;Preferences-&amp;gt;LPCXpresso-&amp;gt;General 'Show welcome view'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. It's a good idea to import / create all projects in the same workspace folder (CMSIS also).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(Also explained in LPCXpressoGettingStarted.pdf in your lpcxpresso folder) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Including #include "gpio.h" should be enough in a source file, if gpio.h is in the same source folder.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:45:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Mysterious-puzzling-LPCXpresso/m-p/588330#M28084</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Mysterious puzzling LPCXpresso</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Mysterious-puzzling-LPCXpresso/m-p/588331#M28085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Smitjs on Thu Jun 23 20:19:54 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;3. Including #include "gpio.h" should be enough in a source file, if gpio.h is in the same source folder.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry, I don't understand. folder, file, directory?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gpio.h is one file, gpio.c is another, and the c source files are other files. All of these files are in the same directory, and the errors are there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help some more.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Johan Smit&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:45:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Mysterious-puzzling-LPCXpresso/m-p/588331#M28085</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Mysterious puzzling LPCXpresso</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Mysterious-puzzling-LPCXpresso/m-p/588332#M28086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Fri Jun 24 01:56:25 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Blinky makes use of the CMSIS headers and library, so you need to ensure that you have the version of the CMSIS project that appropriate for your target also present in your workspace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the file where you are trying to test GPIOSetValue, just use&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;
#include "gpio.h"
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;which defines GPIOSetValue for you - you don't need to do anything else.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:45:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Mysterious-puzzling-LPCXpresso/m-p/588332#M28086</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Mysterious puzzling LPCXpresso</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Mysterious-puzzling-LPCXpresso/m-p/588333#M28087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Smitjs on Fri Jun 24 02:13:11 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I humbly apologize and accept I am an idiot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This was supposed to be a quick test, and I was looking at the mistake without seeing it. I tried to compile the line: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void GPIOSetValue( uint32_t portNum, uint32_t bitPosi, uint32_t bitVal );&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;without putting it inside a function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How stupid can you get?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Surround it with void test (void{....} and it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Apologies all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Johan Smit&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:45:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Mysterious-puzzling-LPCXpresso/m-p/588333#M28087</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:45:31Z</dc:date>
    </item>
  </channel>
</rss>

