GithubHelp home page GithubHelp logo

flash_achilles_mac's Introduction

How to flash Achilles Pro firmware on Eachine Pro58 on a mac using ST-Link v2

  1. Install brew
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  1. Install stlink and openocd and telnet
$ brew install openocd
$ brew install telnet
  1. Convert the hex file to binary using arm-none-eabi-objcopy (make sure the binary is in your $PATH)
$ arm-none-eabi-objcopy -I ihex --output-target=binary <path>/Achilleas_V_1_4_EACHINE.hex  <path>/achilles.bin
  1. Run openocd
$ openocd -f openocd.cfg -f stm32f1x.cfg -c init
  1. Open another terminal and use telnet to connect to the debugger
$ telnet localhost 4444
  1. Make sure your module is connected
> targets
  1. Halt the module
> halt
  1. Unlock the flash (if needed)
> stm32f1x unlock 0
  1. Reset to apply the changes
> reset run
  1. Halt again
> halt
  1. Erase bank 0
> stm32f1x mass_erase 0
  1. Flash the binary
> flash write_bank 0 <absolute_path>/achilles.bin 0
  1. Reset the module
> reset run

flash_achilles_mac's People

Contributors

tozes avatar

Stargazers

lutek avatar Nick Meehan avatar

Watchers

James Cloos avatar  avatar

Forkers

chexov

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.