Skip to main content
Topic: Webplatform Contiki 2.5 port (Read 49726 times) previous topic - next topic

Re: Webplatform Contiki 2.5 port

Reply #30
[quote author="shuckc"]No idea, I don't know the PIC24 architecture well enough to comment. The PIC32 port took me about a week to get going, albeit the Ethernet driver was already running by others, so I only had to do the Contiki wrapper.[/quote]

Hi,

I am getting started on contiki. The dev tools I have are from microchip, so I was looking for a contiki port for it.

I am compilin contiki-dp-webplatform-main.c with mplab/xc16 and it seems that this main file does not define `autostart_processes' and `procinit'.

Am I missing something?

Also, Is the PIC32 port available?

Thank you!

Re: Webplatform Contiki 2.5 port

Reply #31
I am have never used cygwin before. I prefer to use MPLAB to build and debug my programs.
What do I need to do to make this work in MPLAB ?
How do I find which files I need to include and how ??

PLease guide me.

Thanks

Re: Webplatform Contiki 2.5 port

Reply #32
Getting Contiki to build in MPLAB is a significant challenge due to the project structure. Makefiles are the way to go.

I also use Windows 7 64-bit and my builds work as per the instructions, so that is not your problem. You do need Cygwin for the makefile to work.

If you paste here any build errors I am sure we can fix it.

Chris

 

Re: Webplatform Contiki 2.5 port

Reply #33
Allright. I will follow your advise and work with cygwin instead of trying to get it working with MPLAB.

Here is my problem with cygwin.
I did following steps.

$ mkdir dpweb; cd dpweb
$ git clone git://github.com/shuckc/contiki-mirror.git
$ cd contiki-mirror/examples/hello-world/

Then I did
$ make savetarget TARGET=dp-webplatform

I got this
pic30-gcc version is '4.0.3' recommend 4.0.3
saving Makefile.target

Then
$ make

Which worked fine and I got .HEX file which is perfect.

But then I wanted to run something on native platform so I changed it "native"
$ make savetarget TARGET=native
saving Makefile.target

But now if I change it back to dp-webplatform I get following error.

$ make savetarget TARGET=dp-webplatform
pic30-gcc version is '4.0.3' recommend 4.0.3
obj_dp-webplatform/procinit.d:1: *** multiple target patterns.  Stop.


I searched online and found this error is related to PATH.

Can you please let me know what do I need to do to get it working.

Re: Webplatform Contiki 2.5 port

Reply #34
Do something like "rm *.hex && rm *.out"

The build system does not "re-make" if the existing output files are there.

I am quite a bit better at Makefiles since I modified the platform scripts for ds-pic. If there's something I can fix easily I will do so any push it to github. Good luck!

Re: Webplatform Contiki 2.5 port

Reply #35
removed .hex and .out files but still same error.

Thanks

Re: Webplatform Contiki 2.5 port

Reply #36
Try 'make clean'

Re: Webplatform Contiki 2.5 port

Reply #37
Bingo!!!!
Thank you so much.
I spent whole day yesterday for this.

Re: Webplatform Contiki 2.5 port

Reply #38
:-(  sorry - but also, thanks for sticking with it!

Re: Webplatform Contiki 2.5 port

Reply #39
Guys,  could someone please tell where this "https://github.com/shuckc/contiki-mirror" this lives now or where I could pull a copy? I'm getting a 404 on github for the original link.

Thanks