<?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>Other NXP ProductsのトピックRe: sprintf() link error for DSP56F801 project</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/sprintf-link-error-for-DSP56F801-project/m-p/128082#M38</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Daniel,&lt;/DIV&gt;&lt;DIV&gt;Thanks for the explanation and thanks for providing your stripped down version of sprintf.&amp;nbsp; It will come in handy while trying out the demo board.&amp;nbsp; Since it is a memory issue, I should probably choose a higher end family member for my final design.&amp;nbsp; I ran into a similar problem trying to use the PC Master functionality.&amp;nbsp; Maybe I should just get a higher end demo board and then scale back when I figure out how things work.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Greg&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Sep 2006 20:00:22 GMT</pubDate>
    <dc:creator>GregCloutier</dc:creator>
    <dc:date>2006-09-08T20:00:22Z</dc:date>
    <item>
      <title>sprintf() link error for DSP56F801 project</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/sprintf-link-error-for-DSP56F801-project/m-p/128080#M36</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;To get right to the question, is there any reason that sprintf() does not work with a DSP56F801 processor.&amp;nbsp; The function exists, and I just can't get it to work.&amp;nbsp; It seems silly since I have not had a problem doing this on much less capable processors with less resources.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have a 56F800DEMO board with a DSP56F801FA60 processor on it.&amp;nbsp; I have had no problem building and running the 3 included demo applications.&amp;nbsp; I have populated the RS232 level converter area and have been able to communicate using the "Term" bean.&amp;nbsp; So my problem does not seem to be linked to hardware functionality or toolchain problems.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have tried many ways to build an application using the sprintf() function from the stdio.h library in Codewarrior 7.3.&amp;nbsp; I have tried adding it to the demo projects, a fresh PE&amp;nbsp;Stationary, &amp;nbsp;EABI Stationary, and the new project wizard.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Here is a sample of the simplest version of the code that demonstrates the problem:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="msg_source_code"&gt;&lt;SPAN class="text_smallest"&gt;Code:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;#include&amp;lt;stdio.h&amp;gt;int main(void){ char myString[50]; sprintf(myString,"Test String");   return 0;}&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Under all conditions, I get the following error:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="msg_source_code"&gt;&lt;SPAN class="text_smallest"&gt;Code:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;Link Error   : Segment overflow: .x_internal_RAMReserved size is 0x000003c0 -- Overflow 0x00000068Link failed.&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;By the way, the actual size that I assign to the character array has absolutely no effect on the amount of overflow.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for any help or suggestions,&lt;/DIV&gt;&lt;DIV&gt;Greg&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 20:10:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/sprintf-link-error-for-DSP56F801-project/m-p/128080#M36</guid>
      <dc:creator>GregCloutier</dc:creator>
      <dc:date>2006-08-24T20:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: sprintf() link error for DSP56F801 project</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/sprintf-link-error-for-DSP56F801-project/m-p/128081#M37</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;if I recall correctly the default sprintf is implemented in such a way that it needs malloc and heap space - which is why it runs out of mem.&lt;BR /&gt;&lt;BR /&gt;Attached is a *very* old project of mine where I have implemented my own printf and sprintf. Perhaps that will be of some help to you.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;P&gt;Message Edited by DanielM on &lt;SPAN class="date_text"&gt;2006-08-24&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;09:37 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 21:35:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/sprintf-link-error-for-DSP56F801-project/m-p/128081#M37</guid>
      <dc:creator>DanielM</dc:creator>
      <dc:date>2006-08-24T21:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: sprintf() link error for DSP56F801 project</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/sprintf-link-error-for-DSP56F801-project/m-p/128082#M38</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Daniel,&lt;/DIV&gt;&lt;DIV&gt;Thanks for the explanation and thanks for providing your stripped down version of sprintf.&amp;nbsp; It will come in handy while trying out the demo board.&amp;nbsp; Since it is a memory issue, I should probably choose a higher end family member for my final design.&amp;nbsp; I ran into a similar problem trying to use the PC Master functionality.&amp;nbsp; Maybe I should just get a higher end demo board and then scale back when I figure out how things work.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Greg&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 20:00:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/sprintf-link-error-for-DSP56F801-project/m-p/128082#M38</guid>
      <dc:creator>GregCloutier</dc:creator>
      <dc:date>2006-09-08T20:00:22Z</dc:date>
    </item>
  </channel>
</rss>

