Skip to content

Minor updates to the pyOCD entry in "read flash" page #249

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions software/readout_hex.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ This tool has a range of features:

You can download the [latest release of the uBitTool GUI Editor](https://github.com/carlosperate/ubittool/releases/) from the GitHub repository and there are [Instructions to read out the contents of a hex file](https://www.embeddedlog.com/ubittool/usage.html) on the website

## py-ocd
## pyOCD

This method reads out the .hex file on the micro:bit to a file in your working directory.

In order to complete this task you will require some additional tools and libraries:

- Linux/Mac OS
- Python 2 (pyOCD is not supported in Python3)
- Windows/Linux/Mac OS
- Python
- [GNU Project Debugger](https://www.gnu.org/software/gdb/) included as part of [ArmDeveloper GNU Embedded Toolchain](https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads) [How to Install](https://gnu-mcu-eclipse.github.io/toolchain/arm/install/)
- [pyOCD Python library](https://github.com/mbedmicro/pyOCD)
- [pyOCD Python package](https://github.com/pyocd/pyOCD)

The method described here has been tested on Mac OS using [Homebrew as a package manager](https://brew.sh/), but should work on Linux. Additional steps are linked to, but it is outside the scope of this article to go through setup.
The method described here has been tested on Mac OS with a micro:bit V1 using [Homebrew as a package manager](https://brew.sh/), but should work on Linux. Additional steps are linked to, but it is outside the scope of this article to go through setup.

## Procedure

Expand Down