TiLDA MK3/build: Difference between revisions

From EMF Badge
Jump to navigation Jump to search
No edit summary
Line 8: Line 8:
=== arm-none-eabi-gcc ===
=== arm-none-eabi-gcc ===
https://launchpad.net/gcc-arm-embedded/+download
https://launchpad.net/gcc-arm-embedded/+download
You will have to make the ```arm-none-eabi-gcc``` from the bin directory available to your system (add to PATH, symlink or copy)
You will have to make the arm-none-eabi-gcc from the bin directory available to your system (add to PATH, symlink or copy)
 
On Ubuntu you can follow these instructions: https://launchpad.net/~team-gcc-arm-embedded/+archive/ubuntu/ppa


=== pyusb===
=== pyusb===

Revision as of 16:40, 20 July 2016

Dependencies

You can use either windows or linux, although windows will not have most things installed by default

git, make, python, etc

I will just assume you have this

arm-none-eabi-gcc

https://launchpad.net/gcc-arm-embedded/+download You will have to make the arm-none-eabi-gcc from the bin directory available to your system (add to PATH, symlink or copy)

On Ubuntu you can follow these instructions: https://launchpad.net/~team-gcc-arm-embedded/+archive/ubuntu/ppa

pyusb

sudo pip install pyusb

Flashing

# Clone this repo
git clone git@github.com:emfcamp/micropython.git

# Switch to our work branch
cd micropython
git checkout tilda-master

# Now we can build the firmware and flash it to the badge
# You have to boot the badge into dfu mode by pressing down the center
# joystick button while pressing the reset button to trigger a reboot
make -C stmhal BOARD=STM32L475_EMFBADGE --deploy