Re: [arm-gnu] Sprintf on Cortex M1 (G++, working standard functions)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] Sprintf on Cortex M1 (G++, working standard functions)



Thanks for the response.
It seems it is because of the linker script i use. I dont use a CodeSourcery specific one. (The one i use was provided with my Board, and I adepted it for my use...) When i link my object files without adding the linkerscript parameter it seems to work. But i wonder which linkerscript is used when i dont use the "-T script.ld". According to the documentation (Getting Started Guide, page 58, paragraph 6.5.3) i need to set the -T parameter, it says nothing about any default script when not using it.

Maybe someone got an idea. Sorry bout those silly questions. Im sure it is pretty common knowledge but google and this mailing list dont have answers for me.


-----Ursprüngliche Nachricht-----
Von: Daniel Jacobowitz 
Gesendet: Montag, 12. Oktober 2009 16:50
An: Hondorf, Tobias
Cc: arm-gnu@xxxxxxxxxxxxxxxx
Betreff: Re: [arm-gnu] Sprintf on Cortex M1 (G++, working standard functions)

On Mon, Oct 12, 2009 at 10:23:06AM +0200, Hondorf, Tobias wrote:
> Dear Community,
> 
> I'm wondering why the "Sprintf" function is not working with 
> CodeSourcery generating code for an Cortex M1.
> It seems the functions (called from sprintf)  _sbrk, _write, _close 
> and so on... are not implemented.
> For this reason i tried to use itoa() for my purpose, it is not found 
> in the codesourcery library aswell.

It sounds like you didn't supply a correct linker script.  See the supplied linker scripts or the section on CS3 in the Getting Started Guide for more information.

--
Daniel Jacobowitz
CodeSourcery