<?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>Why program switches from thumb to ARM</title><link>https://community.arm.com/developer/tools-software/tools/f/armds-forum/952/why-program-switches-from-thumb-to-arm</link><description> Note: This was originally posted on 24th November 2011 at http://forums.arm.com Hi Everyone I&amp;#39;ve got beginner question (hope this is right place to do it, if not please direct me). I &amp;#39;ve prepared whole environment for my STM32F103VCT6 Cortex-M3 processor</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Why program switches from thumb to ARM</title><link>https://community.arm.com/thread/2805?ContentTypeID=1</link><pubDate>Sat, 05 Apr 2014 21:21:09 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5b2c6a60-d353-41e4-9c5c-b7ae96dc81f6</guid><dc:creator>techguyz</dc:creator><description>&lt;div&gt;&lt;p&gt;arm and thumb needs to be addressed while setting the bkpt. If bkpt is set in arm mode and if code executes in thumb mode it might not work.&lt;/p&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why program switches from thumb to ARM</title><link>https://community.arm.com/thread/2804?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2013 11:05:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:99643551-38bc-44ec-9008-50238c18fe61</guid><dc:creator>Peter Harris</dc:creator><description>&lt;div&gt;&lt;i&gt;Note: This was originally posted on 24th November 2011 at &lt;a href="http://forums.arm.com"&gt;http://forums.arm.com&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;The Cortex-M3 only implements one instruction set - a Thumb variant - this is one reason why the cores are very small.&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why program switches from thumb to ARM</title><link>https://community.arm.com/thread/2803?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2013 11:05:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:597c1904-4517-4e31-935d-be9e6b5daa03</guid><dc:creator>Jerry Fan</dc:creator><description>&lt;div&gt;&lt;i&gt;Note: This was originally posted on 26th November 2011 at &lt;a href="http://forums.arm.com"&gt;http://forums.arm.com&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Please dump the elf file using arm-none-eabi-objdum -d elf_file.elf &amp;gt; dump.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Take additional attention to the main function when it call the a() function, the &amp;quot;bl&amp;quot; instruction or &amp;quot;blx&amp;quot; instruction used.&amp;#160;&amp;#160; If the &amp;quot;blx&amp;quot;, that is too bad.&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why program switches from thumb to ARM</title><link>https://community.arm.com/thread/2802?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2013 11:05:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8f5824ac-63f7-48d4-9890-e79ebe544934</guid><dc:creator>Joseph Yiu</dc:creator><description>&lt;div&gt;&lt;i&gt;Note: This was originally posted on 25th November 2011 at &lt;a href="http://forums.arm.com"&gt;http://forums.arm.com&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Could you generate dissassembly code for the compiled program and post it here?&lt;/span&gt;&lt;br /&gt;&lt;span&gt;e.g. &lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;#160;&amp;#160; arm-none-eabi-objdump -S &lt;/span&gt;&lt;i&gt;test&lt;/i&gt;&lt;span&gt;.o &amp;gt; &lt;/span&gt;&lt;i&gt;test&lt;/i&gt;&lt;span&gt;.lst&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why program switches from thumb to ARM</title><link>https://community.arm.com/thread/2800?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2013 11:05:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c8c5dfaf-2c87-4eae-8182-664a2e8d9d90</guid><dc:creator>Gilead Kutnick</dc:creator><description>&lt;div&gt;&lt;i&gt;Note: This was originally posted on 26th November 2011 at &lt;a href="http://forums.arm.com"&gt;http://forums.arm.com&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Try adding -mthumb and -march=armv7-m to your C flags. -mcpu doesn&amp;#39;t actually define any instruction set constraints, it&amp;#39;s for tuning backend optimization.&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>