<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>CodeWarrior Development ToolsのトピックRe: Stack consumption in codewarrior</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Stack-consumption-in-codewarrior/m-p/883114#M7498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pratibha Surabhi,&lt;/P&gt;&lt;P&gt;Please send me demo code of this problem, thus I can look into the problem directly.&lt;/P&gt;&lt;P&gt;Please note, I don't need your working project, just a demo project to showcase your issue is good. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Jun Zhang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Feb 2019 02:17:20 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2019-02-25T02:17:20Z</dc:date>
    <item>
      <title>Stack consumption in codewarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Stack-consumption-in-codewarrior/m-p/883111#M7495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have enabled stack usage in linker in properties in codewarrior. I then added the ISRs and startup in entries section in .prm file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In map file we could see the stack consumption but the entire project tree as per functions was not created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to confirm how the stack usage is calculated using this setting and how it can be verified.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2019 07:25:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Stack-consumption-in-codewarrior/m-p/883111#M7495</guid>
      <dc:creator>pratibhasurabhi</dc:creator>
      <dc:date>2019-02-22T07:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Stack consumption in codewarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Stack-consumption-in-codewarrior/m-p/883112#M7496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;To investigate your issue, please let me know:&lt;/P&gt;&lt;P&gt;1. what's your chip part number?&lt;/P&gt;&lt;P&gt;2. Your CW version.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jun Zhang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2019 10:03:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Stack-consumption-in-codewarrior/m-p/883112#M7496</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2019-02-22T10:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Stack consumption in codewarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Stack-consumption-in-codewarrior/m-p/883113#M7497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;To investigate your issue, please let me know:&lt;/P&gt;&lt;P&gt;1. what's your chip part number? S12ZVM128&lt;/P&gt;&lt;P&gt;2. Your CW version.V10.7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Pratibha Surabhi&lt;/P&gt;&lt;P&gt;Tata Consultancy Services Limited&lt;/P&gt;&lt;P&gt;Mailto: pratibha.surabhi@tcs.com&lt;/P&gt;&lt;P&gt;Website: &lt;A href="http://www.tcs.com" target="test_blank"&gt;http://www.tcs.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2019 10:39:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Stack-consumption-in-codewarrior/m-p/883113#M7497</guid>
      <dc:creator>pratibhasurabhi</dc:creator>
      <dc:date>2019-02-22T10:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Stack consumption in codewarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Stack-consumption-in-codewarrior/m-p/883114#M7498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pratibha Surabhi,&lt;/P&gt;&lt;P&gt;Please send me demo code of this problem, thus I can look into the problem directly.&lt;/P&gt;&lt;P&gt;Please note, I don't need your working project, just a demo project to showcase your issue is good. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Jun Zhang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2019 02:17:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Stack-consumption-in-codewarrior/m-p/883114#M7498</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2019-02-25T02:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Stack consumption in codewarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Stack-consumption-in-codewarrior/m-p/883115#M7499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zhang ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no error actually .We just wanted to confirm how much reliable is &lt;/P&gt;&lt;P&gt;that stack consumption option for stack estimation .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Pratibha Surabhi&lt;/P&gt;&lt;P&gt;Tata Consultancy Services Limited&lt;/P&gt;&lt;P&gt;Mailto: pratibha.surabhi@tcs.com&lt;/P&gt;&lt;P&gt;Website: &lt;A href="http://www.tcs.com" target="test_blank"&gt;http://www.tcs.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2019 06:46:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Stack-consumption-in-codewarrior/m-p/883115#M7499</guid>
      <dc:creator>pratibhasurabhi</dc:creator>
      <dc:date>2019-02-25T06:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Stack consumption in codewarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Stack-consumption-in-codewarrior/m-p/883116#M7500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;When using &lt;SAMP class=""&gt;-StackConsumption&lt;/SAMP&gt; , the linker automatically computes the stack consumption estimation for the application's entry point. This includes, typically the &lt;SAMP class=""&gt;_Startup&lt;/SAMP&gt; function and the user-provided vector table entries . Since it is not possible to determine at link-time control-flow dependencies between usual functions and interrupt handlers the linker will compute and print the stack consumption for each vector table entry separately.&lt;/P&gt;&lt;P&gt;The linker also supports advanced features to increase the precision of the estimation. These include:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding edges to the call graph; the &lt;SAMP class=""&gt;FUNCTION_PAIR&lt;/SAMP&gt; directive .&lt;/LI&gt;&lt;LI&gt;Specifying user-defined stack consumption for a function; the &lt;SAMP class=""&gt;CONSUMPTION d&lt;/SAMP&gt;irective .&lt;/LI&gt;&lt;LI&gt;Specifying a custom call sub-tree; the &lt;SAMP class=""&gt;ROOT &lt;/SAMP&gt;directive .&lt;/LI&gt;&lt;LI&gt;Specifying that a specific interrupt can be raised during the execution of a function; the &lt;SAMP class=""&gt; INTERRUPT_FUNCTION&lt;/SAMP&gt; directive .&lt;/LI&gt;&lt;LI&gt;Specifying the maximum recursion factor for a function; the &lt;SAMP class=""&gt;RECURSION_FACTOR &lt;/SAMP&gt;directive .&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check if advanced features you need in your project. For more, see " Stack Consumption Computation" in MCU_Build_Tools_Utilities.pdf under your CW11 install folder.&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jun Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 13:26:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Stack-consumption-in-codewarrior/m-p/883116#M7500</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2019-02-26T13:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Stack consumption in codewarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Stack-consumption-in-codewarrior/m-p/883117#M7501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Zhang &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for the reply .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide in the below mentioned 2 queries &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.The stack usage mentioned in map file and theoretically calculated(by &lt;/P&gt;&lt;P&gt;considering local variables used in function)  are not coming same.&lt;/P&gt;&lt;P&gt;We think it is because of stack consumption of library function. So, we &lt;/P&gt;&lt;P&gt;want to know the stack usage of library function.&lt;/P&gt;&lt;P&gt;Request you to guide us for stack consumption calculation using map file. &lt;/P&gt;&lt;P&gt;2.The stack consumption in map file does not include all the functions &lt;/P&gt;&lt;P&gt;being called by ISR .In the dependency tree section all functions are &lt;/P&gt;&lt;P&gt;coming though .&lt;/P&gt;&lt;P&gt;Request you to please guide &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Pratibha Surabhi&lt;/P&gt;&lt;P&gt;Tata Consultancy Services Limited&lt;/P&gt;&lt;P&gt;Mailto: pratibha.surabhi@tcs.com&lt;/P&gt;&lt;P&gt;Website: &lt;A href="http://www.tcs.com" target="test_blank"&gt;http://www.tcs.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 11:26:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Stack-consumption-in-codewarrior/m-p/883117#M7501</guid>
      <dc:creator>pratibhasurabhi</dc:creator>
      <dc:date>2019-03-01T11:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Stack consumption in codewarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Stack-consumption-in-codewarrior/m-p/883118#M7502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pratibha Surabhi,&lt;/P&gt;&lt;P&gt;Please send us your demo code for this two statement:&lt;/P&gt;&lt;P&gt;- "The stack usage mentioned in map file and theoretically calculated(by&lt;/P&gt;&lt;P&gt;considering local variables used in function)&amp;nbsp; are not coming same."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- " The stack consumption in map file does not include all the functions&lt;/P&gt;&lt;P&gt;being called by ISR&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;we can't&amp;nbsp; investigate this problem without a specific demo project. Not your working project but a demo project is great.&lt;/P&gt;&lt;P&gt;Thanks for your understanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jun Zhang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 12:15:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Stack-consumption-in-codewarrior/m-p/883118#M7502</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2019-03-01T12:15:10Z</dc:date>
    </item>
  </channel>
</rss>

