Recently I’ve tried to use CodeSourcery G++ Lite 2009q3-67 compiler for AT91SAM7X128. The compilation of my project works fine, but during linking FreeRTOS need memset et all functions. To provide them I’ve tried to cross compile newlib. After some fixes compilation works fine but “make install” fails.
Then I found
[ topic, where they are saying that there is lack of newlib support for CodeSourcery. Is it true? What can I do to provide memset etc functions to CodeSourcery?
I have never had a problem calling C library functions with a bulk standard CodeSorcery installation, and a quick glance at the CodeSorcery page shows that it comes with EGLIBC 2.10. See http://www.codesourcery.com/sgpp/lite/arm
Thanks for info. I’ve gone slightly further. The code now compiles and links, but it doesn’t fit into FLASH because linker tries to put everything from standard libraries. How can I force it to link only used stuff - I mean functions referenced by the other functions.
Sorry guys to bothering you again, but I am really stuck now. Can someone point me to working example of compilation/linking of C program for AT91SAM7X MCU using CodeSourcery Lite tools and standard C lib functions please?