<?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>Error removing a function</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/25634/error-removing-a-function</link><description> 
Hi, I have a function in my code which has its content commented.
So it does nothing. When a I remove this function the system no
longer works (the LED was blinking and now is turned off). 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Error removing a function</title><link>https://community.arm.com/thread/148386?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2009 05:01:53 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e008ce82-a380-434e-af4a-e46cbcbc3fb8</guid><dc:creator>while ();</dc:creator><description>&lt;p&gt;&lt;p&gt;
Without ULINK (JTAG debugger) you will not be able to find out
easily why your application hangs, especially if in simulator it
works.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error removing a function</title><link>https://community.arm.com/thread/152862?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2009 04:53:56 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c2fd585b-7ced-4d50-957d-cb142dbf0164</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
If nothing else, perhaps all this just goes to show that you
should get a JTAG link!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error removing a function</title><link>https://community.arm.com/thread/148098?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2009 04:42:38 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:705d96e0-881b-431f-b843-ba400b6ae2e5</guid><dc:creator>Gustavo Melo</dc:creator><description>&lt;p&gt;&lt;p&gt;
I can run the simulation debug, but in this way the system works
normally. I can&amp;#39;t run JTAG debug because I do not have JTAG link.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error removing a function</title><link>https://community.arm.com/thread/147532?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2009 03:42:23 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a6ad3bbf-6c98-4da8-b6f2-d01295601b6e</guid><dc:creator>while ();</dc:creator><description>&lt;p&gt;&lt;p&gt;
Why don&amp;#39;t you debug the code and see where it hangs?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error removing a function</title><link>https://community.arm.com/thread/146407?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2009 03:35:53 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a62da88b-093e-4b48-910f-46bb98041cc2</guid><dc:creator>Gustavo Melo</dc:creator><description>&lt;p&gt;&lt;p&gt;
Well, the t function is not called. It is a dummy function
actually.&lt;br /&gt;
There is no error in the link. The .hex file is generated, but no
functionality of the system works. Neither blinking LED, nor others
like uart communication.&lt;br /&gt;
I use RTC RAM to store some important data. But it should not
interfere the system working at this point.&lt;br /&gt;
When I simulate the code in Keil it works. However, when I load the
.hex file ...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error removing a function</title><link>https://community.arm.com/thread/144660?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2009 01:20:46 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:cfe37564-5a74-4a6f-b823-6b04f1aea4f3</guid><dc:creator>Advanced Zeusti</dc:creator><description>&lt;p&gt;&lt;p&gt;
Tapeer.&lt;/p&gt;

&lt;p&gt;
u have been reeding the wrong book!&lt;/p&gt;

&lt;p&gt;
i thoght u knew what it was. most arm programmers know it. abi is
the application binary interface.&lt;/p&gt;

&lt;p&gt;
i have found the link for u&lt;/p&gt;

&lt;p&gt;

&lt;a href="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.subset.swdev.abi/index.html"&gt;infocenter.arm.com/.../index.jsp&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
Always yo&amp;#39;re freind.&lt;/p&gt;

&lt;p&gt;
Zeusti.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error removing a function</title><link>https://community.arm.com/thread/142359?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2009 01:09:34 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c23dd7e7-5650-4219-964c-c6507b11d1e2</guid><dc:creator>Tamiryan Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;(the abi reader)&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Let me guess - &amp;quot;abi&amp;quot; stands for &amp;quot;Abnormal Brain Inactive&amp;quot; ?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error removing a function</title><link>https://community.arm.com/thread/139229?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2009 01:02:54 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a345464c-aeff-4160-8365-00ba155c0b0f</guid><dc:creator>Advanced Zeusti</dc:creator><description>&lt;p&gt;&lt;p&gt;
Tapeer.&lt;/p&gt;

&lt;p&gt;
thank u for yo&amp;#39;re kind words of kindness and support.&lt;/p&gt;

&lt;p&gt;
Always yo&amp;#39;re freind.&lt;/p&gt;

&lt;p&gt;
Zeusti.&lt;/p&gt;

&lt;p&gt;
(the abi reader)&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error removing a function</title><link>https://community.arm.com/thread/139230?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2009 01:01:56 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7333d8fc-3711-4bb8-89a6-fd3d34401649</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Note that the original poster never says that the program runs.
Just that it doesn&amp;#39;t work anymore.&lt;/p&gt;

&lt;p&gt;
What is the name of this removed function? It may be a function
that the CRTL has a default implementation of, so removing the
function will result in another function with the same name being
linked into the application - a function that does something not
compatible with the rest of the program.&lt;/p&gt;

&lt;p&gt;
A big question here is what differences the function removal has
to the information in the link map file. Will the map file show that
there are no longer a function with this name, and all following
functions having their start address reduced with a few bytes?&lt;/p&gt;

&lt;p&gt;
Another thing - do you have a debugger? Or have you tried to run
the application in the simulator? Will it enter main()?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error removing a function</title><link>https://community.arm.com/thread/135829?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2009 00:50:04 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:002b50a0-a10b-4d3a-b4c2-becdc7551bbb</guid><dc:creator>Tamiryan Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
it is simply hilarious (don&amp;#39;t forget to use a dictionary to figure
out what &amp;#39;hilarious&amp;#39; means, junior, if you know how to) to see you
copy-paste (with spelling mistakes, for potato&amp;#39;s sake...) the
arguments of others, even when you totally don&amp;#39;t understand them. you
embody a combination of characteristic that I really dislike in
people: stupidity, arrogance, swagger, ignorance.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error removing a function</title><link>https://community.arm.com/thread/125552?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2009 00:33:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:010fe5a0-c8fd-4583-94c7-16cb84cc3010</guid><dc:creator>Advanced Zeusti</dc:creator><description>&lt;p&gt;&lt;p&gt;
Tapeer.&lt;/p&gt;

&lt;p&gt;
if link fails and is no executeble he mite have erased device. how
does ne know program runs? or do U know?&lt;/p&gt;

&lt;p&gt;
i see if i can find the abi for dummys book 4 u to reed in a quiet
room.&lt;/p&gt;

&lt;p&gt;
Always yo&amp;#39;re freind.&lt;/p&gt;

&lt;p&gt;
Zeusti.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error removing a function</title><link>https://community.arm.com/thread/125553?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2009 00:28:49 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6bda8051-7fb6-4a5f-afd9-3ca0eeceb1d5</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
We have seen a large number of posts where people have complained
about their applications and described specific errors (such as not
blinking) even when they have failed to link a binary.&lt;/p&gt;

&lt;p&gt;
Some people defines &amp;quot;running&amp;quot; as managing to (maybe) send a binary
to the target. Some people things that the program is running because
all I/O reverts to their reset defaults. Some people things that the
program is running because the program has gone wild and manages to
touch any I/O while not in control.&lt;/p&gt;

&lt;p&gt;
In this case, a good initial question might be: How do you know
that the program is still running, even if you can&amp;#39;t see any blinking
LED?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error removing a function</title><link>https://community.arm.com/thread/115051?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2009 00:16:27 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a3e909e4-ee0a-4636-ad8d-b26af349a909</guid><dc:creator>Tamiryan Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
say, professor, how can it be that the OP reports that the program
&amp;quot;no longer works&amp;quot; (=LED does not blink, but program runs), if he
indeed got linker errors as you suspect? do you really believe that
programs that don&amp;#39;t link can be run?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error removing a function</title><link>https://community.arm.com/thread/103235?ContentTypeID=1</link><pubDate>Wed, 01 Jul 2009 23:40:22 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9a9bf7f8-211c-4278-9bdb-e4be23463468</guid><dc:creator>Advanced Zeusti</dc:creator><description>&lt;p&gt;&lt;p&gt;
HI.&lt;/p&gt;

&lt;p&gt;
when you remove t function do u get link errors? is t function
being called?&lt;/p&gt;

&lt;p&gt;
Always yo&amp;#39;re freind.&lt;/p&gt;

&lt;p&gt;
Zeusti.&lt;/p&gt;

&lt;p&gt;
(the arm abi reader)&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error removing a function</title><link>https://community.arm.com/thread/89844?ContentTypeID=1</link><pubDate>Wed, 01 Jul 2009 23:24:06 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d8fc3bd6-bb7b-4c90-96e1-bf148183cebf</guid><dc:creator>Tamiryan Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
maybe removing the function shifts the location of some
memory-mapped structure you are using? you really need to give more
details.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error removing a function</title><link>https://community.arm.com/thread/56361?ContentTypeID=1</link><pubDate>Wed, 01 Jul 2009 12:51:13 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a271b8b8-11c7-4cf8-87aa-1fdcfd8c639e</guid><dc:creator>Gustavo Melo</dc:creator><description>&lt;p&gt;&lt;p&gt;
There are just two functions (inclusive the mentioned function) in
the .c file (one of several .c files). Removing the empty function
causes the failure.&lt;br /&gt;
Can somebody help me?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>