Git Product home page Git Product logo

mist's Issues

Make issue

Hi Ilya,

Thanks for creating this code repo and allowing people to experiment with it.

I have one issue (which is more likely a setup issue on my end). I followed the usual steps to build in Contiki on this one and it was not successful. The steps I followed are:

My system - Standard Ubuntu 12.10

  1. Downloaded the 1.0.1 version of the mist zip file from the git and extracted it
  2. Installed the MSP 430 toolkit by sudo apt-get install gcc-msp430
  3. On a terminal went into .../thingsquare-mist-1.0.0/examples/hello-world/ folder
  4. Ran the command - make TARGET=exp1101 hello-world
  5. The build failed with the last few lines as shown below:

msp430-gcc -mmcu=msp430f5438 -Wl,-Map=contiki-exp1101.map hello-world.co obj_exp1101/contiki-exp5438-main.o contiki-exp1101.a -o hello-world.exp1101
/usr/lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: hello-world.exp1101 section .text' will not fit in regionrom'
/usr/lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: section .vectors loaded at [0000ff80,0000ffff] overlaps section .text loaded at [00005c00,00011dad]
/usr/lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: region rom' overflowed by 9762 bytes /usr/lib/gcc/msp430/4.6.3/mcpu-430x/mmpy-16/libcrt0.a(_copy_data.o): In function__do_copy_data':
/build/buildd/gcc-msp430-4.6.3~mspgcc-20120406/./gcc-4.6.3/gcc/config/msp430/crt0.S:195: relocation truncated to fit: R_MSP430_16_BYTE against symbol __data_load_start' defined in *ABS* section in hello-world.exp1101 obj_exp1101/contiki-exp5438-main.o: In functionmain':
contiki-exp5438-main.c:(.init9+0x34): relocation truncated to fit: R_MSP430_16_BYTE against no symbol' contiki-exp5438-main.c:(.init9+0x38): relocation truncated to fit: R_MSP430_16 against symbolputs' defined in .text section in /usr/lib/gcc/msp430/4.6.3/../../../../msp430/lib/mcpu-430x/mmpy-16/libc.a(puts.o)
contiki-exp5438-main.c:(.init9+0x3c): relocation truncated to fit: R_MSP430_16_BYTE against no symbol' contiki-exp5438-main.c:(.init9+0x40): relocation truncated to fit: R_MSP430_16_BYTE againstno symbol'
contiki-exp5438-main.c:(.init9+0x44): relocation truncated to fit: R_MSP430_16_BYTE against no symbol' contiki-exp5438-main.c:(.init9+0x48): relocation truncated to fit: R_MSP430_16 against symbolprintf' defined in .text section in /usr/lib/gcc/msp430/4.6.3/../../../../msp430/lib/mcpu-430x/mmpy-16/libc.a(printf.o)
contiki-exp5438-main.c:(.init9+0x88): relocation truncated to fit: R_MSP430_16_BYTE against no symbol' contiki-exp5438-main.c:(.init9+0x8c): relocation truncated to fit: R_MSP430_16 against symbolprintf' defined in .text section in /usr/lib/gcc/msp430/4.6.3/../../../../msp430/lib/mcpu-430x/mmpy-16/libc.a(printf.o)
contiki-exp5438-main.c:(.init9+0x9c): relocation truncated to fit: R_MSP430_16_BYTE against `no symbol'
contiki-exp5438-main.c:(.init9+0xa0): additional relocation overflows omitted from the output
collect2: ld returned 1 exit status
make: *** [hello-world.exp1101] Error 1

Can you please comment on if I have missed something or if I need any more specific tools to be able to build it. Also, can you prepare a one page readme file to mention the steps for building and flashing to a platform (for example exp5438 with cc1101 radio).

Thanks,
Sreenath K R

Adding additional Details

  1. When I try to run the command - make TARGET=mist-exp5438 hello-world - I see another issue as shown below:
    sreenath@sreeofficelinux:hello-world$ make TARGET=mist-exp5438 hello-world
    msp430-gcc -DPROJECT_CONF_H="project-conf.h" -DMIST_TARGET="mist-exp5438" -DUIP_CONF_IPV6=1 -DUIP_CONF_IPV6_RPL=1 -DCONTIKI=1 -DCONTIKI_TARGET_MIST_EXP5438=1 -DWITH_UIP6=1 -DIP64_CONF_TYPICAL -Os -fno-strict-aliasing -Wall -mmcu=msp430f5438 -I. -I../../platform/mist-exp5438/. -I../../platform/mist-exp5438/dev -I../../platform/mist-exp5438/apps -I../../platform/mist-exp5438/net -I../../contiki/cpu/msp430/f5xxx -I../../contiki/cpu/msp430/. -I../../contiki/cpu/msp430/dev -I../../contiki/core/dev -I../../contiki/core/lib -I../../contiki/core/net -I../../contiki/core/net/mac -I../../contiki/core/net/rime -I../../contiki/core/net/rpl -I../../contiki/core/sys -I../../contiki/core/cfs -I../../contiki/core/ctk -I../../contiki/core/lib/ctk -I../../contiki/core/loader -I../../contiki/core/. -I../../apps/mist-conf -I../../apps/aes -I../../apps/drowsie -I../../apps/ip64-addr -I../../apps/ip64 -I../../apps/mdns -I../../apps/udp-socket -I../../apps/tcp-socket -I../../apps/websocket -I../../apps/simple-rpl -I../../apps/ip64-addr -I../../apps/mdns -I../../apps/aes -I../../apps/multichan -I../../apps/drowsie -I../../apps/drowsie-multichannel -I../../platform/mist-exp5438/ -MMD -c ../../contiki/core/net/rime/rimeaddr.c -o obj_mist-exp5438/rimeaddr.o
    In file included from ../../contiki/core/./net/rime/rimeaddr.h:57:0,
    from ../../contiki/core/net/rime/rimeaddr.c:45:
    ../../platform/mist-exp5438/./contiki-conf.h:36:27: fatal error: platform-conf.h: No such file or directory
    compilation terminated.
    make: *** [obj_mist-exp5438/rimeaddr.o] Error 1
  2. I have tried making both the target under Instant Contiki VM as well and have seen the same issues repeated.

Regards,
Sreenath K R

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.