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 ?
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?
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.
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ā¦
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.
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 ?