AnsweredAssumed Answered

sprintf() link error for DSP56F801 project

Question asked by Greg Cloutier on Aug 24, 2006
Latest reply on Sep 8, 2006 by Greg Cloutier
To get right to the question, is there any reason that sprintf() does not work with a DSP56F801 processor.  The function exists, and I just can't get it to work.  It seems silly since I have not had a problem doing this on much less capable processors with less resources.
I have a 56F800DEMO board with a DSP56F801FA60 processor on it.  I have had no problem building and running the 3 included demo applications.  I have populated the RS232 level converter area and have been able to communicate using the "Term" bean.  So my problem does not seem to be linked to hardware functionality or toolchain problems.
I have tried many ways to build an application using the sprintf() function from the stdio.h library in Codewarrior 7.3.  I have tried adding it to the demo projects, a fresh PE Stationary,  EABI Stationary, and the new project wizard. 
Here is a sample of the simplest version of the code that demonstrates the problem:
#include<stdio.h>int main(void){ char myString[50]; sprintf(myString,"Test String");   return 0;}
Under all conditions, I get the following error:
Link Error   : Segment overflow: .x_internal_RAMReserved size is 0x000003c0 -- Overflow 0x00000068Link failed.
By the way, the actual size that I assign to the character array has absolutely no effect on the amount of overflow.
Thanks for any help or suggestions,