<?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>Keil uVision 5 can not find Defintion of a Function</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/35034/keil-uvision-5-can-not-find-defintion-of-a-function</link><description> 
Hello 

 
The programm I have is all fine, the compiler can compile it and
the linker link it. But there is one c-file which the keil u vision 5
IDE can not handle correctly somehow. If I hover over a function from
that particular file, right click</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Keil uVision 5 can not find Defintion of a Function</title><link>https://community.arm.com/thread/70620?ContentTypeID=1</link><pubDate>Fri, 09 Mar 2018 07:57:42 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a9efa383-4070-4df9-ac67-6b22ec0f4e3e</guid><dc:creator>Kevin</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hello Fabio,&lt;/p&gt;

&lt;p&gt;
* In the Project window, Icons on the folder the file is in, and
the file itself identify the item type and permissions. Refer to
File, Group, and Component Attributes for details. If one of those
have a special icon, look it up here:&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/support/man/docs/uv4/uv4_ca_filegrp_att.htm"&gt;http://www.keil.com/support/man/docs/uv4/uv4_ca_filegrp_att.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
An excluded file won&amp;#39;t be built&lt;/p&gt;

&lt;p&gt;
* Do a rebuild all, and then check the Build log to make sure you
are bringing in the proper pack files:&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/support/docs/3734.htm"&gt;http://www.keil.com/support/docs/3734.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
Make sure the log shows that file you are having with got
compiled.&lt;/p&gt;

&lt;p&gt;
* Close all the tabs in the editor, and reopen them using the
project window, to make sure you are not looking at an old file&lt;/p&gt;

&lt;p&gt;
* Double-click the target name to open the linker mapping file
(*.map). (see &lt;a href="http://www.keil.com/support/man/docs/uv4/uv4_projwin.htm"&gt;http://www.keil.com/support/man/docs/uv4/uv4_projwin.htm&lt;/a&gt;
for details )&lt;/p&gt;

&lt;p&gt;
Do a &amp;lt;ctrl + F&amp;gt; search for your function names in the map
file.&lt;/p&gt;

&lt;p&gt;
In particular, look for a section called &amp;quot;Removing Unused input
sections from the image.&amp;quot;&lt;/p&gt;

&lt;p&gt;
If the linker does not think a function is used, then it removes
that code. Removed code won&amp;#39;t have debug information&lt;/p&gt;

&lt;p&gt;
See: &lt;a href="http://www.keil.com/support/man/docs/armclang_link/armclang_link_pge1362065927214.htm"&gt;
&lt;a href="http://www.keil.com/support/man/docs/armclang_link/armclang_link_pge1362065927214.htm"&gt;www.keil.com/.../armclang_link_pge1362065927214.htm&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
* Under Project-&amp;gt; Options for target -&amp;gt; on the Listing tab,
check &amp;quot;c Preprocessor listing&amp;quot;&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/support/man/docs/uv4/uv4_dg_adslst.htm"&gt;http://www.keil.com/support/man/docs/uv4/uv4_dg_adslst.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
Press OK, and then translate the troublesome C file - this will
make a &amp;lt;filname&amp;gt;.i in your project&amp;#39;s listing folder. Open this
*.i file in a text editor - it shows the result of all the #If and
other preprocessor directives. Look to see if your functions are
excluded by these commands.&lt;/p&gt;

&lt;p&gt;
(note - generating preprocessor files slows down compiling - so
make sure to turn off this feature when you are done
troubleshooting)&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil uVision 5 can not find Defintion of a Function</title><link>https://community.arm.com/thread/109448?ContentTypeID=1</link><pubDate>Thu, 08 Mar 2018 22:52:25 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6bcef1ce-c605-46a6-8bb7-9659b0826c54</guid><dc:creator>Fabio Bucher</dc:creator><description>&lt;p&gt;&lt;p&gt;
No there are no preprocessor macros and no inline functions
neither. The declaration in the associated H-file is no problem for
the IDE, it can jump to it just fine.&lt;br /&gt;
When I am in the debbuging mode and jump into a function from this
specific module - no problem neither.&lt;/p&gt;

&lt;p&gt;
That&amp;#39;s why I am curious...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil uVision 5 can not find Defintion of a Function</title><link>https://community.arm.com/thread/94356?ContentTypeID=1</link><pubDate>Thu, 08 Mar 2018 10:41:39 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:234cd9b6-2167-409c-8dc8-9937364151ea</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
It&amp;#39;s not being obfuscated through preprocessor stuff, is it?&lt;/p&gt;

&lt;p&gt;
Or &amp;#39;inline&amp;#39; ... ?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil uVision 5 can not find Defintion of a Function</title><link>https://community.arm.com/thread/70626?ContentTypeID=1</link><pubDate>Thu, 08 Mar 2018 09:18:14 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:765a8881-841f-49c9-a6b3-4321413875db</guid><dc:creator>Fabio Bucher</dc:creator><description>&lt;p&gt;&lt;p&gt;
An addendum: For the interested parties, the compiler version we
use is 5050106 (ARMCC V5.05, Build 106).&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil uVision 5 can not find Defintion of a Function</title><link>https://community.arm.com/thread/94357?ContentTypeID=1</link><pubDate>Thu, 08 Mar 2018 09:00:06 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:cbf4c3c7-782d-46f8-80ca-4fb87a1e380e</guid><dc:creator>Fabio Bucher</dc:creator><description>&lt;p&gt;&lt;p&gt;
Well thats the funny thing, it is code which is used and compiled.
It is my driver to regulate the exposer time of a laser. And it works
over the interfaces just perfectly. Can it be the codesize, because
our Keil environment is not very perfomant anymore.&lt;br /&gt;
A general &amp;quot;go to definition&amp;quot; command can take up to 10 or more
seconds. And compilation of the entire project takes several minutes
(7-15min, depends on which hardware).&lt;/p&gt;

&lt;p&gt;
Codesize:&lt;br /&gt;
Program Size: Code=408452 RO-data=758768 RW-data=12912
ZI-data=369768&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil uVision 5 can not find Defintion of a Function</title><link>https://community.arm.com/thread/70619?ContentTypeID=1</link><pubDate>Thu, 08 Mar 2018 07:04:03 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e81c19cc-3771-47b7-943c-90429bbf43d5</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
In that case, the &amp;quot;reference&amp;quot; must be in code that is never
used.&lt;/p&gt;

&lt;p&gt;
Presumably, it is disabled by some &lt;b&gt;#if&lt;/b&gt; ... ?&lt;/p&gt;

&lt;p&gt;
Or is that source file simply excluded form the build ?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>