AnsweredAssumed Answered

sprintf consume l1 datamem ?

Question asked by pfeifferc on Mar 21, 2012
Latest reply on Mar 28, 2012 by pfeifferc

Hi !

i have a dynamic mem-allocation for internal DataMem L1.

nearly all of int. datamem is used so i must carrefull organize additional data.

but how is sprintf function organized ?

if i declare e.g

sprintf(text,"\r\n%d:%d:%d",timebase.hourCnt,timebase.minuteCnt,timebase.secondCnt);

 

i get all my int.memory allocated

if i extend it to

sprintf(text,"\r\nuptime:%d:%d:%d",timebase.hourCnt,timebase.minuteCnt,

                                 timebase.secondCnt);

 

i could not allocate the rest - why is there any sram used and how can i avoid this ???

 

regards chris

Outcomes