Webplatform Contiki 2.5 port

A small embedded server. Get one for $40, including worldwide shipping.

Re: Webplatform Contiki 2.5 port

Postby future » Tue Oct 30, 2012 12:20 am

shuckc wrote: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.


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!
future
Newbie
Newbie
 
Posts: 1
Joined: Tue Oct 30, 2012 12:18 am

Re: Webplatform Contiki 2.5 port

Postby viks » Wed Nov 14, 2012 3:57 pm

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
viks
Newbie
Newbie
 
Posts: 6
Joined: Wed Nov 14, 2012 3:55 pm

Re: Webplatform Contiki 2.5 port

Postby shuckc » Fri Nov 16, 2012 4:18 am

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
shuckc
Newbie
Newbie
 
Posts: 46
Joined: Tue Jan 11, 2011 3:00 pm
Location: London, UK

Re: Webplatform Contiki 2.5 port

Postby viks » Fri Nov 16, 2012 11:02 am

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.
viks
Newbie
Newbie
 
Posts: 6
Joined: Wed Nov 14, 2012 3:55 pm

Re: Webplatform Contiki 2.5 port

Postby shuckc » Fri Nov 16, 2012 11:05 am

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!
shuckc
Newbie
Newbie
 
Posts: 46
Joined: Tue Jan 11, 2011 3:00 pm
Location: London, UK

Re: Webplatform Contiki 2.5 port

Postby viks » Fri Nov 16, 2012 1:53 pm

removed .hex and .out files but still same error.

Thanks
viks
Newbie
Newbie
 
Posts: 6
Joined: Wed Nov 14, 2012 3:55 pm

Re: Webplatform Contiki 2.5 port

Postby shuckc » Fri Nov 16, 2012 2:18 pm

Try 'make clean'
shuckc
Newbie
Newbie
 
Posts: 46
Joined: Tue Jan 11, 2011 3:00 pm
Location: London, UK

Re: Webplatform Contiki 2.5 port

Postby viks » Fri Nov 16, 2012 2:43 pm

Bingo!!!!
Thank you so much.
I spent whole day yesterday for this.
viks
Newbie
Newbie
 
Posts: 6
Joined: Wed Nov 14, 2012 3:55 pm

Re: Webplatform Contiki 2.5 port

Postby shuckc » Fri Nov 16, 2012 2:47 pm

:-( sorry - but also, thanks for sticking with it!
shuckc
Newbie
Newbie
 
Posts: 46
Joined: Tue Jan 11, 2011 3:00 pm
Location: London, UK

Re: Webplatform Contiki 2.5 port

Postby ronald » Sat Aug 31, 2013 3:57 pm

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
ronald
Newbie
Newbie
 
Posts: 4
Joined: Sun Jun 06, 2010 11:31 am

Re: Webplatform Contiki 2.5 port

Postby Sjaak » Mon Sep 02, 2013 3:05 am

Seems like it is renamed: https://github.com/shuckc/contiki-dspic
User avatar
Sjaak
Fellow
Fellow
 
Posts: 3039
Joined: Sun Jan 03, 2010 2:45 pm
Location: Hiero

Previous

Return to Web platform

cron