Last active
July 1, 2023 20:20
-
-
Save DKrepsky/aadfc4122ead6e6ef1ba to your computer and use it in GitHub Desktop.
CC3200 Launchpad Ubuntu Install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Install instructions to work with the CC3200 uC under Ubuntu 14.10. | |
## Adding the drivers to enable debug and the serial port: | |
1- Install OpenOCD: "sudo apt-get install openocd". | |
2- Create a UDEV rule to be able to debug. | |
a- Create a new file in /opt/udev/rules.d named 99-ticc3200.rules. | |
b- Open the file with a editor. | |
c- Add the following text: | |
ATTRS{idVendor}=="0451", ATTRS{idProduct}=="c32a", MODE="0770", GROUP="dialout", RUN+="/sbin/modprobe ftdi-sio", RUN+="/bin/sh -c '/bin/echo 0451 c32a > /sys/bus/usb-serial/drivers/ftdi_sio/new_id'" | |
3- Add your user to dialout group: "sudo usermod -a -G dialout YOURUSERNAME" | |
4- Restart your session (do a logout). | |
5- Connect the board to your machine. | |
6- Check dmesg for the board "dmesg | grep ttyUSB" | |
7- Usually, the board will be on ttyUSB0 and ttyUSB1, being ttyUSB1 the virtual com port. | |
## Installing the toolchain | |
1- Intall the GCC ARM compiler. | |
a- Add the ppa: "sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded" | |
b- Update: "sudo apt-get update". | |
c- Install gcc for arm: "sudo apt-get install gcc-arm-none-eabi" | |
2- Download Eclipse CDT from https://eclipse.org/cdt/. | |
3- Extract eclipse to somewhere (I use /opt/cc3200/eclipse). | |
4- If you don`t have Java, install it. | |
5- Open eclipse (with write privilege to the install folder). | |
6- Add the GNU ARM Eclipse Plugin by following the instructions at http://gnuarmeclipse.livius.net/blog/plugins-install/. | |
8- Download the CC3200 SKD (you can download the one provided by texas instruments or the one in my CC3200-Linux-SDK repository). | |
9- Compile an example. | |
a- If you got my version of the sdk, try to import an example into eclipse and compile/debug it. For more info read the docs at the sdk folder. | |
b- For the TI sdk, you have to port the projects to work with eclipse and the ARM pluggin. | |
## Additional tools | |
1- Install minicom to work with the serial port: "sudo apt-get install minicom". | |
2- Create a simbolic link to eclipse: "sudo ln -s ECLIPSE_INSTALL_DIR/eclipse /usr/bin/cc3200". |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment