Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Diego10
PostPosted: Nov 15, 2010 - 09:06 PM
Newbie


Joined: Jul 08, 2010
Posts: 10


Hi,

I am trying to do things like redirect the stdin/stdout to a specific I/O (USART), override the '_gettimeofday()' function and it would be really helpful to have some documentation on the AVR32 port of 'newlib'.

For example, currently it seems that the 'gettimeofday()' function is somehow obtaining the time through the debugger (AVR Dragon), which is clearly of no use to a real project.

If not particular to the AVR32 port it would be great to have information pointing out on how to plug your own system calls to get the standard library working.

If someone can point me in the right direction I would appreciate it!

Thanks a lot!
Diego
 
 View user's profile Send private message  
Reply with quote Back to top
tridentsx
PostPosted: Jul 02, 2012 - 04:34 AM
Rookie


Joined: Dec 27, 2011
Posts: 27


I am trying to find the same information, did you have any luck finding info about the AVR32 newlib?
 
 View user's profile Send private message  
Reply with quote Back to top
kblomqvist
PostPosted: Jul 06, 2012 - 12:00 PM
Hangaround


Joined: Dec 11, 2011
Posts: 190
Location: Finland

Hi,

I do not have idea where to find any specific documentation for the port, but there are only three diff files for the newlib so maybe it can be possible to find the answers there.

Red Hat's documentation can be found from their pages http://sourceware.org/newlib/. Click the docs from the sidebar. AVR Toolchain release notes (version 3.4.0.332) indicate that the toolchain uses the newlib version 1.16.0. The latest one seemed to be 1.20.0 though.

Off topic: newlib version 1.17.0, released a year after the 1.16.0, seemed to have some improvements for "formatted I/O to reduce dependencies when using sprintf/sscanf family of functions". That would be interesting as I have seen lot of trouble when people have tried to use sprintf() in AVR32.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits