<?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>LED with button</title><link>https://community.arm.com/developer/ip-products/processors/f/cortex-m-forum/48024/led-with-button</link><description> I am using the STM32 G031K8 ARM CORTEX-M0 + development board. 
 I am writing my code in Assembly language. 
 I want the LED to light up when I add an external button and press this button. I have adjusted the Clock settings and GPIOx settings. I set</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: LED with button</title><link>https://community.arm.com/thread/168583?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 22:16:15 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:52ed35e1-ea6c-4e70-9926-cc00df8edd3b</guid><dc:creator>Andy Neil</dc:creator><description>[quote userid="70066" url="~/developer/ip-products/processors/f/cortex-m-forum/48024/led-with-button"]STM32 G031K8 ARM CORTEX-M0 + development board[/quote]
&lt;p&gt;You mean this Nucleo board:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/469/pastedimage1605046368340v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.st.com/en/evaluation-tools/nucleo-g031k8.html"&gt;https://www.st.com/en/evaluation-tools/nucleo-g031k8.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You need this book:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/469/pastedimage1605046193542v1.jpeg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.elsevier.com/books/the-definitive-guide-to-arm-cortex-m0-and-cortex-m0-processors/yiu/978-0-12-803277-0"&gt;https://www.elsevier.com/books/the-definitive-guide-to-arm-cortex-m0-and-cortex-m0-processors/yiu/978-0-12-803277-0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You will also need to study the ST &lt;strong&gt;documentation&lt;/strong&gt; for the &lt;span&gt;STM32G031K8&amp;nbsp;&lt;/span&gt; microcontroller on that board:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.st.com/en/microcontrollers-microprocessors/stm32g031k8.html"&gt;https://www.st.com/en/microcontrollers-microprocessors/stm32g031k8.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Specifically, the Reference Manual:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://www.st.com/resource/en/reference_manual/dm00371828-stm32g0x1-advanced-armbased-32bit-mcus-stmicroelectronics.pdf"&gt;https://www.st.com/resource/en/reference_manual/dm00371828-stm32g0x1-advanced-armbased-32bit-mcus-stmicroelectronics.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and the Datasheet:&amp;nbsp;&lt;a href="https://www.st.com/resource/en/datasheet/stm32g031k8.pdf"&gt;https://www.st.com/resource/en/datasheet/stm32g031k8.pdf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LED with button</title><link>https://community.arm.com/thread/168579?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 18:13:21 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:48536406-3116-4dff-8dae-3974d92fc8cf</guid><dc:creator>42Bastian Schick</dc:creator><description>&lt;p&gt;Check out STM32 Cube. It contains plenty of examples.&lt;br /&gt;Also, I recommend to read the Cortex-M manual to learn the instruction set.&lt;br /&gt;Next, the STM32G032K8 manual.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LED with button</title><link>https://community.arm.com/thread/168576?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 16:59:13 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0bace651-0382-445b-8e84-74b3f110b1b3</guid><dc:creator>SuleimanTheMagnificent</dc:creator><description>&lt;p&gt;Thanks Oli&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LED with button</title><link>https://community.arm.com/thread/168575?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 16:58:04 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:46833264-de6f-4f04-8a30-1be33fb12bf2</guid><dc:creator>Oliver Beirne</dc:creator><description>&lt;p&gt;Hi Suleiman&lt;/p&gt;
&lt;p&gt;I have moved your question to the Cortex-M forum, where hopefully someone can answer your question.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Oli&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>