GCC Compile help badly needed ! (SAM7S256)

Greetings, I have for some time now tried to compile FreeRTOS-4.0.2 without much success :-( Steps: Downloaded and installed WinARM-20060331(2).zip Downloaded and unpacked FreeRTOSV4.0.2.zip In Demo->ARM7_LPC2106_GCC typed "make" and this one compiles just fine. No Problem. In Deme->lwIP_Demo_Rowley_ARM7 typed "make" after adjusting the Heap Size it complains about "undefined reference to `_sbrk_r’" and a lot of other udefined references to what I beleive belongs to Newlib. I have searched for other references to this problem, but so far no luck. I saw one fix it with something related to syscalls.c/.h but didn’t rellay catch the hint. Can someone out there help me make a succesfull build that I can later on "Convert" to a SAM7S256 ? Cheers RaceMouse

GCC Compile help badly needed ! (SAM7S256)

The ARM7_LPC2106_GCC demo should be built using one of the .bat files included in the same directory.  These setup the parameters for ARM Vs THUMB and ROM Vs RAM builds.  I did not think it would build simply by typing ‘make’ but seems I am wrong. The lwIP demo does require the change you have made to the heap size, but then builds with no warnings or errors for me.  I am using gnuarm (http://www.gnuarm.org/) not winarm which is the compiler suggested on the FreeRTOS site.  Have you tried this?

GCC Compile help badly needed ! (SAM7S256)

I have some code sent to me from various people using GCC with a SAM7S – but these are now a bit out of date.  Converting the SAM7X to a SAM7S should be straight forward. I have never tried the winarm version of GCC.  I suggest trying the www.gnuarm.com version as this is what the port was originally created with.  You should find no compile time errors. Regards.

GCC Compile help badly needed ! (SAM7S256)

Yes, Iv’e tried that one as well (bu-2.16.1_gcc-4.1.0-c-c++_nl-1.14.0_gi-6.4.exe), but that gives an error : "The procedure entry point __getreent could not be locates in the dynamic link library cygwin1.dll". – So no luck there either… How did you install GnuArm ? (My work-Box i XP, My Home-Box is Linux) BTW: On my Linuxbox FreeRTOS does not compile either – but thats a different matter… /RaceMouse

GCC Compile help badly needed ! (SAM7S256)

Search your hard disk for cygwin1.dll – it is likely that you have more than one and the incorrect version is being picked up. I just installed GNUARM using the prebuilt single Windows installation file. My version is "arm-elf-gcc (GCC) 4.0.2" With reference to Linux builds – I only test under Windows so often make the mistake of having case problems in include files.  Windows does not care about this as it is case insensitive on file names, but of coarse Linux does care.  I correct these are people point them out to me. Regards.

GCC Compile help badly needed ! (SAM7S256)

Geetings again, I did a search an you was terrible right : There was a cygwin dll in my WINDOWS dir that got read first. I removed all other cygwin dlls and re-installed cygwin from the GnuArm package. Next : make clean and make. The build finished without any warnings/errors. GOOD !!! That did the trick :-) Thanks for the help ! Out of interest : Any ideas what could be wrong when trying with WinArm ? Anyone with any succesfull build using this ? /RaceMouse