-------------------------------------------------- From: "Steve Maroney" Sent: Wednesday, September 01, 2010 10:05 PM To: "Microcontroller discussion list - Public." Subject: Re: [PIC] Microchip TCPIP > is that what I'm supposed to do ? It seemed messy and incorrect to have t= o=20 > search through the >entire stack and remove code that's not specific to=20 > the purpose of the stack it self. I'm a >beginner, so maybe this is how i= t=20 > is. Yes, you will likely have to go through and change the relevant bits of the= =20 Hardware.h config file and if it's like the USB stack examples, things in=20 main.c, user.c/h etc. I have used the Microchip examples to build on for USB projects and before = I=20 got to know the stack better I just let the compiler error messages guide=20 me, and dealt with them one at a time after changing all of the obvious=20 stuff I could see. However I wouldn't really advise this if you are a=20 beginner (it's not great practice either way really.. :-) ) It's good to spend some time going through all the=20 code/comments/documentation and get an idea of what's doing what - there's= =20 no really quick way if you want to do it properly, like with most stuff in= =20 this field it pays to spend time gathering knowledge first to save=20 time/frustration later. In your case it looks like there will probably be a Demo Board defined to=20 use in the Hardware.h file that includes the config bits and pin settings=20 for that particular board. You can write your own processor/board specific= =20 Hardware_xxxx.h file and define this to be included in the Hardware.h file,= =20 plus add a define section for the config bit settings you wish to use.=20 Basically, go through the code and find all the places where it has entries= =20 like this one from the USB demo main.c: #if defined(PICDEM_FS_USB) // various board specific code #endif and either change it or add your own like: #if defined(MY_BOARD) // your // code // here #endif obviously you need to put #define MY_BOARD in the Hardware.h file (or where= =20 you want it) This explanation is not great and may seem a bit confusing - if you still=20 have problems just shout, or if you have hit a complete dead end zip your=20 project up and send it over and I'll try to get it to at least compile for= =20 you. =20 --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .