Posts

Showing posts with the label xm1000

Contiki 3.0 on XM1000

Image
In other post, I installer contiki 3.x on xm1000. Now, we going to install contiki 3.0 (the lastest version). First, you need to dowload the lastest code from github: git clone https://github.com/contiki-os/contiki.git Now we need to add xm1000 compatibility to our contiki. Thanks to DMI   for the xm1000 patch. Without it, you will see the following error: make: *** No rule to make target 'obj_xm1000/cc2420.o', needed by 'contiki-xm1000.a'.  Stop. I upgrade his patch with an app to access to the xm1000 sensors. Download it from https://drive.google.com/file/d/0B7NXiwmWq7jCb3ROSFZZSWliMnc/view?usp=sharing Now, extract it into contiki folder: tar xzvf xm1000.tar.gz cd xm1000 cp -R * $YOUR_CONTIKI_PATH Go to the apps folder and execute an script that I create to automate the process: cd $YOUR_CONTIKI_PATH/platform/xm1000/apps/sensors ./install.sh Enjoy it!

Hello World for Contiki on XM1000

Image
In my last post, I explain how to run a  Hello World for Contiki on IRIS-XM2110 Mote. Now, I explain how to do on a MTM-XM1000. First, as in the previous case, we need check that xm1000 is within the targets. For include it in contiki, we need download it from the developer site and include in contiki folder. wget  http://www.advanticsys.com/shop/documents/1429538511_contiki-xm1000-v2015-04-15.rar unrar x 1429538511_contiki-xm1000-v2015-04-15.rar cd contiki-xm1000-v2015-04-15/contiki/ Now copy the content of tools/ and platform/ in your Contiki directory cp -R * $YOUR_CONTIKI_PATH If we compile the file hello-world.c, remember that now you must do it with TARGET=xm1000 make TARGET=xm1000 savetarget make hello-world sudo make hello-world.upload This is a typically error: ../../core/dev/sht11.c: In function ‘sht11_init’: ../../core/dev/sht11.c:218:4: warning: #warning SHT11: DISABLING I2C BUS [-Wcpp] ../../core/dev/sht11.c:221:5: error: ‘SHT11_PxR...