<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Setting port as output, turn on led</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/39377/setting-port-as-output-turn-on-led</link><description> 
Hello everyone. I have an evaluation kit EKK-LM3S9B96. I try to
write simply program, just turn on led. I think i do it good and i
don&amp;#39;t know where i do mistake. 

 
#include &amp;lt;LM3Sxxxx.H&amp;gt;
int main()
{
 GPIODirModeSet(GPIO_PORTD_BASE,GPIO_PIN_7,GPIO_DIR_MODE_OUT</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Setting port as output, turn on led</title><link>https://community.arm.com/thread/116469?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2011 02:14:37 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b2718a2f-2a39-49ac-951c-3b167da73eeb</guid><dc:creator>Luk Fel</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi. It&amp;#39;s working now. One pin from JTAG socket was broken. I
solder new one. Thanks for help and Your time.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting port as output, turn on led</title><link>https://community.arm.com/thread/105166?ContentTypeID=1</link><pubDate>Thu, 11 Aug 2011 09:02:10 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4d2619bc-315c-4a34-be99-6d8427dd9ce3</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Have you downloaded the complete Stellarisware package?&lt;/p&gt;

&lt;p&gt;
Have you studied the Stellarisware User Guide?&lt;/p&gt;

&lt;p&gt;
Did you read the Read Me First document?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting port as output, turn on led</title><link>https://community.arm.com/thread/127043?ContentTypeID=1</link><pubDate>Thu, 11 Aug 2011 08:14:46 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:973685d5-2f35-49f7-8129-8e71dfb3a156</guid><dc:creator>Luk Fel</dc:creator><description>&lt;p&gt;&lt;p&gt;
Yes is me. Forgot paste link there. Once again. I really have EKK
not DK Evaluation Kit. I have header LM3Sxxxx.H. There is hw_gpio.h
and gpio.h documents. They have some APIs that i use in program. But
Blinky use functions that aren&amp;#39;t declared in my header. Therefore i
don&amp;#39;t understand when You write that Blinky is for every Evaluation
Kit. What i should do? Many thanks for help.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting port as output, turn on led</title><link>https://community.arm.com/thread/91151?ContentTypeID=1</link><pubDate>Thu, 11 Aug 2011 08:10:15 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:300040b7-b4f5-4e29-8c75-6ce84d8090a3</guid><dc:creator>Ashley Madison</dc:creator><description>&lt;p&gt;&lt;p&gt;
&amp;quot;There is no such thing listed on the TI site - only the
DK-LM3S9B96:&amp;quot;&lt;/p&gt;

&lt;p&gt;
just because they don&amp;#39;t have it now doesn&amp;#39;t mean they didn&amp;#39;t have
it before.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting port as output, turn on led</title><link>https://community.arm.com/thread/79492?ContentTypeID=1</link><pubDate>Thu, 11 Aug 2011 07:37:59 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8dcb416f-0a21-4888-8563-ac794791e981</guid><dc:creator>Luk Fel</dc:creator><description>&lt;p&gt;&lt;p&gt;
Maybe they don&amp;#39;t have it but i have. On the box is write:
Stellaris EKK-LM3S9B96 Evaluation Kit&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting port as output, turn on led</title><link>https://community.arm.com/thread/119428?ContentTypeID=1</link><pubDate>Thu, 11 Aug 2011 07:30:13 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d758b654-b716-4d34-a472-074ee8997c13</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
You didn&amp;#39;t - did you?&lt;/p&gt;

&lt;p&gt;

&lt;a href="http://e2e.ti.com/support/microcontrollers/stellaris_arm_cortex-m3_microcontroller/f/475/p/127971/458010.aspx#458010"&gt;e2e.ti.com/.../458010.aspx&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting port as output, turn on led</title><link>https://community.arm.com/thread/66824?ContentTypeID=1</link><pubDate>Thu, 11 Aug 2011 07:24:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:05f61428-894f-4eaf-a9ff-25143e67115e</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
There is no such thing listed on the &lt;b&gt;TI&lt;/b&gt; site - only the
&lt;b&gt;D&lt;/b&gt;K-LM3S9B96:&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://focus.ti.com/docs/toolsw/folders/print/dk-lm3s9b96.html"&gt;focus.ti.com/.../dk-lm3s9b96.html&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting port as output, turn on led</title><link>https://community.arm.com/thread/127035?ContentTypeID=1</link><pubDate>Thu, 11 Aug 2011 07:11:46 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:dbe6e98d-4539-49db-9aab-a17ecd53cfec</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
There is a &amp;#39;Blinky&amp;#39; example for &lt;i&gt;&lt;b&gt;every&lt;/b&gt;&lt;/i&gt; Stellaris
Evaluation Kit (EK), and the DK-LM3S9B96 - so that covers
&lt;i&gt;&lt;b&gt;every&lt;/b&gt;&lt;/i&gt; Stellaris family!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting port as output, turn on led</title><link>https://community.arm.com/thread/116470?ContentTypeID=1</link><pubDate>Thu, 11 Aug 2011 06:29:08 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0be1b221-1076-4e6c-b845-cd1792adecc8</guid><dc:creator>Luk Fel</dc:creator><description>&lt;p&gt;&lt;p&gt;
Andrew i saw the Blinky example earlier but it doesn&amp;#39;t help me.
That example is on another uC and have other APIs functions. I try TI
Stellaris forum :)&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting port as output, turn on led</title><link>https://community.arm.com/thread/127042?ContentTypeID=1</link><pubDate>Thu, 11 Aug 2011 06:19:17 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:92767244-8c1e-4bbd-8342-18d871fc60bd</guid><dc:creator>Luk Fel</dc:creator><description>&lt;p&gt;&lt;p&gt;
I didn&amp;#39;t write this but i have the code in while(1) loop so
program is running all time. Sorry.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting port as output, turn on led</title><link>https://community.arm.com/thread/119427?ContentTypeID=1</link><pubDate>Thu, 11 Aug 2011 05:18:51 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:453d92ab-c2cb-4a05-8a3b-7fcff51f95ec</guid><dc:creator>IB Shy</dc:creator><description>&lt;p&gt;&lt;p&gt;
Not familiar with the processor, but you&amp;#39;ve missed one thing that
sure won&amp;#39;t help:&lt;/p&gt;

&lt;pre&gt;
#include &amp;lt;LM3Sxxxx.H&amp;gt;
int main()
{
        GPIODirModeSet(GPIO_PORTD_BASE,GPIO_PIN_7,GPIO_DIR_MODE_OUT);
        GPIOPinWrite(GPIO_PORTD_BASE,GPIO_PIN_7,0xff);

        for (;;)  &lt;b&gt;// &amp;lt;&amp;lt;&amp;lt; Make sure you don&amp;#39;t fall off the end of &amp;#39;main&amp;#39; &lt;/b&gt;
          ;
}
&lt;/pre&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting port as output, turn on led</title><link>https://community.arm.com/thread/105167?ContentTypeID=1</link><pubDate>Thu, 11 Aug 2011 05:02:15 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f342410f-689e-4749-b37a-e87461f3c616</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Note that this has nothing to do with Keil - you would be better
to ask on the &lt;b&gt;TI&lt;/b&gt; Stellaris forum.&lt;/p&gt;

&lt;p&gt;

&lt;a href="http://e2e.ti.com/support/microcontrollers/stellaris_arm_cortex-m3_microcontroller/default.aspx"&gt;e2e.ti.com/.../default.aspx&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
If you do cross-post, be sure to provide links between the
threads.&lt;/p&gt;

&lt;p&gt;
But, again, have you tried the examples that TI provide?&lt;/p&gt;

&lt;p&gt;
They provide a &amp;quot;Blinky&amp;quot; example that does exactly what you&amp;#39;re
trying to do...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting port as output, turn on led</title><link>https://community.arm.com/thread/79491?ContentTypeID=1</link><pubDate>Thu, 11 Aug 2011 04:24:10 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:15b49044-f5ca-4dfb-b50e-9c05ca63d2cb</guid><dc:creator>Luk Fel</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi. I read about GPIO settings.&lt;/p&gt;

&lt;pre&gt;
SysCtlClockSet(SYSCTL_SYSDIV_2,SYSCTL_USE_OSC,SYSCTL_XTAL_16MHZ);
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);
GPIOPinTypeGPIOOutput(GPIO_PORTA_BASE,GPIO_PIN_3);
GPIOPinWrite(GPIO_PORTA_BASE,GPIO_PIN_3,0xff);
&lt;/pre&gt;

&lt;p&gt;
&lt;br /&gt;
I think that the section responsible for set GPIO is correct. I just
enable peripheral PORTA, set PIN3 as output and write 1. I think the
problem is with SysCtlClockSet. I tried several options with this
funkcion and possible set clock wrong. Can anyone explain on example
what write to SysCtlClockSet if i wanted to get 6MHz when the
external oscillator is 16MHz.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting port as output, turn on led</title><link>https://community.arm.com/thread/66825?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2011 12:44:00 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:35bf9f93-9e34-4aff-8c56-94a011a391ef</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Start with the documentation &amp;amp; examples included with the
kit:&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/forum/19357/"&gt;http://www.keil.com/forum/19357/&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>