fjrg76 wrote:
> I almost achieve to port the uIP to WinARM, however when linking some
> errors show up. I found a solution in the thread
>
> http://en.mikrocontroller.net/topic/58281
and a lot (lot) of other threads and this an other forums/mailing-lists.
> so I used the crt0.s and LPC2129-RAM/ROM.ld that are included in WinARM
> dist, but errors still appear. The thread says that I should edit
> syscals.c by hand, but that file is in folders for the SAM mcu, not in
> LPC folders. I guess I might copy it to my work folder and edit it to
> see what happens.
Yes, sbrk is rather generic so it can be re-used, adapt read/write to
the use the available output (UART, LCD or whatever).
> If my makefile is needed plese tell me to copy into
> the post
Just provide the syscall implemenations (the functions) and make sure
the object-file(s) which implement them get compiled and linked with the
rest of the project-files.
Also take a look at newlib-lpc from Aeolus which is a library that
provides the newlib-syscalls for LPC (LPC uart for stdio). The
WinARM-pacakge includes a copy of the newlib-lpc source, a precompiled
newlib-lpc-library and one or two examples how it can be used.
Martin Thomas