GCC Compile help badly needed ! (SAM7S256)

nobody wrote on Friday, June 02, 2006:

Greetings,

I have for some time now tried to compile FreeRTOS-4.0.2 without much success :frowning:

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

nobody wrote on Friday, June 02, 2006:

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?

rtel wrote on Friday, June 02, 2006:

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.

nobody wrote on Friday, June 02, 2006:

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

rtel wrote on Friday, June 02, 2006:

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.

nobody wrote on Friday, June 02, 2006:

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 :slight_smile:
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