6LowPan development of the Mountain chapter

Source: Internet
Author: User

This article references: http://blog.csdn.net/xukai871105/article/details/92041011. Basic Concepts1) Instant Contikit Ubuntu Contiki Linux installation package 2) SDCC 8051 C Cross Compiler2. Install Instant Contiki2.1 Downloads Instant Contiki"contiki-2.6/contiki-2.7"file size is about 2.0G, after decompression is about 5.0G, please download the hard disk space before preparing. 2.2 Installing VMware PlayerVMWare player is free software and can be used with confidence. 2.3. Enter Instant Contiki.Please note that the password is user.
2.4 Remaining issues"SDCC not Installed" Instant Contiki is actually Ubuntu, on the basis of Ubuntu installed Cooja and msp430 compilation environment, can say Instant Contiki is a perfect development environment, but did not install SDCC, And CC2530 is required to SDCC support to complete the compilation. "Unable to set shared directory"
need to solve the shared directory problem, otherwise instant Contiki make hex file cannot be downloaded to the target board through SMARTRF Flash programmer, in order to solve this problem need to install Vmware-tools. (or set up a shared directory, and you can also "share" by copying and pasting) 3. Custom SDCCbefore you start customizing the SDCC, here are a few things to note, which are the details of the above mentioned errors. If you are unfamiliar with Linux from the source code installation software, you can try to install Python from the source code, the source code installation Apache, practice two times so the installation of SDCC is much more proficient.
"1" using the sudo apt-get install SDCC instructions installed SDCC, in instant Contiki can not complete the compilation of cc2530, so you need to download SDCC source code to compile, This process is essentially a process of customizing SDCC. The "2" Download is not the installation package, but the source code of the SDCC. Simply put, these SDCC source code can be compiled into a SDCC installation package. "3" for the version number of SDCC, it is recommended to install version 7100, although the latest version is 8447, but there is a problem with the actual installation process. As noted in Contiki-wiki, there is aproblem with version 7102 to 8719 of SDCC, and the latest available version is 8737 (as of April 2014). "4" about the file directory. In the following specific process need to switch the file directory multiple times, in general, third-party software downloaded in the OPT directory. 3.1 Necessary prerequisites to prepare3.1.1 Installing boost C + + Librariesinstruction:sudo apt-get install Libboost-graph-dev 3.1.2 Installation Srecordinstruction:sudo apt-get install Srecord The above two parts of the installation process is likely to download a very slow situation, if you are in a good mood today, you can wait patiently; If you are in a bad mood today, please try again sometime. If you can't stand it, please modify the Ubuntu software source. 3.2 Download SDCC source code3.2.1 Adjusting directories to optbefore downloading the SDCC source code, it is best to adjust the directory to opt. (SDCC source code package wherever you place the directory)
directive: cd/opt
3.2.2 Download SDCC via SVN commandthen use the SVN command to get the SDCC source code located in SourceForge, where 7100 is the version number, it is recommended to use this version
instruction: sudo svn co-r 7100 https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc/"Special attention"version 7102 to 8719 of the SDCC has a problem, the latest available version is 8737 (as of April 2014) Tip : Although you can't use Ctrl-c and ctrl-v in the console, you can use right-click +paste to speed up your input and avoid errors.
"Tip" SVN is the Repository management tool, and the related tools include Hg and Git. after downloading, you can see the following files in the OPT/SDCC directory:

Figure 1 OPT/SDCC Folder contents

6LowPan development of the Mountain chapter

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.