Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Satirical Shoot 'Em Up for the stm32f7

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

Rust-Mikrocontroller-Praktikum-2017/megamaertz

Repository files navigation

FIESTA PIÑATA

A satirical Shoot 'Em Up for the stm32f7

Setup

  1. install stlink
    • arch: sudo pacman -S stlink
    • general linux
      • install libusb-dev 1.0
      • install cmake
      • install a C-Compiler (sorry)
      • git clone https://github.com/texane/stlink.git && cd stlink && make release && cd build/Release && sudo make install
    • mac os: brew install stlink
    • windows: unzip stlink-1.3.1-win32.zip
  2. install arm cross compilers
    • arch: sudo pacman -S arm-none-eabi-gcc arm-none-eabi-gdb
    • debian/ubuntu: sudo apt-get install gcc-arm-none-eabi gdb-arm-none-eabi
    • macOS: brew tap osx-cross/arm && brew install arm-gcc-bin
      • if you get problems with gdb try brew install Caskroom/cask/gcc-arm-embedded
    • windows:
  3. install a nightly compiler
    • version of 2017-03-28 is working. To use that version append -2017-03-28 to nightly everywhere
    • rustup update nightly (or rustup update nightly-2017-03-28)
  4. dowload the rust source code
    • if your rustup does not have the component subcommand: rustup self update
    • rustup component add rust-src --toolchain nightly
  5. install xargo
    • cargo +nightly install xargo
    • NOTE: do not run this command in this folder, you will get errors about the compiler not finding the standard library
  6. get the demo code
    • git clone https://github.com/Rust-Mikrocontroller-Praktikum-2017/megamaertz.git

Compiling

  1. cd megamaertz
  2. rustup override set nightly
  3. xargo build --release
  4. have patience, the first time you run xargo build, the core library and various others need to be built.
  5. open another terminal and run st-util (win: st-util.exe is located in stlink-1.3.1-win32\bin, which was unzipped for setup)
  6. go back to your first terminal
  7. run sh gdb_release.sh (for windows you need to adapt this)

About

Satirical Shoot 'Em Up for the stm32f7

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published