Olimex Support Forum

Microcontrollers => PIC => Topic started by: otanoz on January 29, 2013, 06:06:51 PM

Title: modified tcp/ip stack for pic-web board using xc8 compiler
Post by: otanoz on January 29, 2013, 06:06:51 PM
Hello,there;
I started using pic-web board a few months ago.
Everthing was going fine until I tried to use new xc8 compiler with the source code from Olimex web page.
It gives so many errors...
Does anybody have a modified version to work with xc8 compiler
Thanks
Title: Re: modified tcp/ip stack for pic-web board using xc8 compiler
Post by: LubOlimex on January 30, 2013, 09:07:06 AM
Hey otanoz,

Unfortunately, we don't have a demo created with XC8. The task of converting all available PIC projects to the new compiler has been added to our TODO list a couple of months ago but it proved to be a much more time consuming task than initially evaluated. The big problem comes mainly from the fact that our PIC examples are based on the Microchip's application libraries BUT the unmodified demo projects does not compile with XC8, either (since the projects are meant to compile with MPLAB C18 and XC8 is essentially Hi-Tech C18.

There appear to be substantial differences between the MPLAB C18 and XC8 compilers, such as:


Many of the above features of MPLAB C18 are used in the Microchip Solutions Libraries which are widely incorporated into customer code. As a result, large blocks of  solution library code ( e.g. the MDD File System ) do not compile using the XC8 compiler since they use features only implemented by the MPLAB C18 compiler.

We are patiently waiting for a newer release of Microchip's Solutions Libraries which hopefully would be adjusted for the new compiler.

Best regards,
Lub/OLIMEX
Title: Re: modified tcp/ip stack for pic-web board using xc8 compiler
Post by: Humancell on March 04, 2013, 10:59:21 PM
Hello,

I am also unable to even get the demo app compiled and linked using the older MPLAB v8.x and C18 ... The compile works, but then I get a Linker error ...

MPLINK 4.46, Linker
Device Database Version 1.11
Copyright (c) 1998-2011 Microchip Technology Inc.
Error - could not find definition of symbol 'BIT_COUNTER' in file 'Objects\Custom_I2C_Low.o'.
Errors    : 1

Can you tell me what is missing or not set-up correctly?  Where does BIT_COUNTER get defined?

Thanks!

Scott
Title: Re: modified tcp/ip stack for pic-web board using xc8 compiler
Post by: LubOlimex on March 05, 2013, 04:53:45 PM
Hey Scott,

Check the stand-alone thread: https://www.olimex.com/forum/index.php?topic=1005.0 (https://www.olimex.com/forum/index.php?topic=1005.0).

Best regards,
Lub/OLIMEX