################################################################################# # Installing the STM32L4 gcc development chain on Ubuntu # (may be incomplete... tested on Ubuntu 15.10.) ################################################################################# # Install the needed tools for compiling sudo apt-get install gcc g++ git autoconf automake libusb-1.0-0-dev # Now get the required cross-compiler, library, and debugger for the arm processors # # Update 1/20/2019: One student reports gdb-arm-none-eabi is not in current repositories... If # you get an error with the command below, try: # sudo apt-get install gcc-arm-none-eabi libnewlib-arm-none-eabi gdb-multiarch sudo apt-get install gcc-arm-none-eabi libnewlib-arm-none-eabi gdb-arm-none-eabi # As far as I know, the stlink utilities for talking to the development # boards are not pre-packaged. You'll have to clone the git repository # and compile the utilities yourself: git clone https://github.com/texane/stlink cd stlink ./autogen.sh ./configure --prefix=/usr/local make -j 2 sudo make install # udev rules: Grab the 99-libusb.rules file from the course web site # http://www.eece.maine.edu/~hummels/classes/ece486/stm32l476.html # and (as root) install in /etc/udev/rules.d sudo wget -N -P /etc/udev/rules.d/ http://web.eece.maine.edu/~hummels/classes/ece486/src/99-libusb.rules # Optional: For a graphical debugger, I've used ddd. (Let me know if you find # a way to get the eclipse ide to work. It should be possible, but I have not # given it too much effort.) sudo apt-get install ddd # Now install the libraries needed for ECE 486. This download includes portions # of the STM32cubeL4 software distributed by STM. # ECE 486 routines are also provided to configure the # processors for real-time "double-buffering" applications. # The STM32L476G-Discovery board is supported. # # You'll need to download, compile, and install the libraries. By default, the # "make install" step will install the libraries in /usr/local/stmdev/ wget -N http://web.eece.maine.edu/~hummels/classes/ece486/src/stmdevel.zip unzip -d stmdevel stmdevel.zip cd stmdevel/build make sudo make install