Premiers pas avec TI CC13xx-CC26xx et Contiki sous Code Composer Studio

—  , - , , , , . , 2015 Texas Instruments CC13xx-CC26xx — , . ARM Cortex-M3, Cortex-M0, , … , —  16- TI , Sensor Controller. — , CC2538.

, 6loWPAN. OSI, IEEE 802.15.4. Texas Instruments , MAC- Cortex-M0. Cortex-M3. Contiki, 6loWPAN.

image

—  « », , .

, . —  Contiki CC2650. , . Contiki TI Code Composer Studio 6. Ubuntu 14.04 X86_64 , Windows , . ...

Toolchain


Contiki. :

git clone --recursive https://github.com/contiki-os/contiki.git

GNU Make + GCC. , Make , CygWin. gcc-arm-none-eabi . PATH!

wget https://launchpad.net/gcc-arm-embedded/4.9/4.9-2015-q3-update/+download/gcc-arm-none-eabi-4_9-2015q3-20150921-linux.tar.bz2
tar xz gcc-arm-none-eabi-4_9-2015q3-20150921-linux.tar.bz2
cd gcc-arm-none-eabi-4_9-2015q3
export PATH=$PATH:`pwd`/bin
arm-none-eabi-gcc –v

SRecord, .

sudo add-apt-repository ppa:pmiller-opensource/ppa
sudo apt-get update
sudo apt-get install srecord

. . $CONTIKI_DIR . 4 , -jN

cd $CONTIKI_DIR/examples/cc26xx
make -j4 TARGET=srf06-cc26xx BOARD=srf06/cc26xx cc26xx-demo
ls cc26xx-demo.srf06-cc26xx

, , .


. Uniflash, . , 4.9.
TI SRF06EB + CC2650, . . .
image

Programs, Add Program.
image

, , , .

Code Composer Studio


TI Code composer Studio for Wireless Connectivity . installation guide TI.


  • image

  • Files -> New -> Other...
  • Makefile Project With Existing Code
    image

  • , Contiki Crocc GCC
    image

  • -> C/C++ Build, make -j4 TARGET=srf06-cc26xx BOARD=srf06/cc26xx , Workspace...
    image

  • Build — , !

    • CCSv6 PATH . : vim /etc/profile.d/env_vars.sh
      export ARM_TOOLCHAIN_HOME=/home/$USER/soft/gcc-arm-none-eabi/gcc-arm-none-eabi-4_9-2015q3
      export PATH=$PATH:$ARM_TOOLCHAIN_HOME/bin


, Contiki CCSv6


  • -> -> Target Configuration File
    image

  • XDS100v3 CC2650
    image

  • Save Test Connection
    image

  • -> Debug As -> Debug Configurations

    • Target Configuration
    • Apply
      image

    • Program Project Program
      image

    • Apply
    • Debug
    • , , No source available
    • contiki/cpu/cc26xx-cc13xx/Makefile.cc26xx-cc13xx
    • CFLAGS += -g
    • : -O2 -Os -O0
    • Debug Configurations
    • Debug

    • image


Contiki Code Composer Studio CC2650!



. , - TI. Eclipse , , . Eclipse, GDB-, hardware-breakpoints. , TI SWRA446.


27 Catethysis.ru, MESH-. , , !

Source: https://habr.com/ru/post/fr390815/


All Articles