You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository provides the necessary tooling to compile a C/C++ CODAL program for the micro:bitv2 and generate a HEX file that can be downloaded to the device.
5
+
This repository provides the necessary tooling to compile a C/C++ CODAL program for the micro:bitV2 and generate a HEX file that can be downloaded to the device.
6
6
7
7
## Raising Issues
8
8
Any issues regarding the micro:bit are gathered on the [lancaster-university/codal-microbit-v2](https://github.com/lancaster-university/codal-microbit-v2) repository. Please raise yours there too.
@@ -11,7 +11,7 @@ Any issues regarding the micro:bit are gathered on the [lancaster-university/cod
11
11
You need some open source pre-requisites to build this repo. You can either install these tools yourself, or use the docker image provided below.
12
12
13
13
-[GNU Arm Embedded Toolchain](https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads)
14
-
-[Github desktop](https://desktop.github.com/)
14
+
-[Git](https://git-scm.com)
15
15
-[CMake](https://cmake.org/download/)
16
16
-[Python 3](https://www.python.org/downloads/)
17
17
@@ -45,7 +45,7 @@ To omit the final output stage (for CI, for example) run without the `--output`
45
45
# Building
46
46
- Clone this repository
47
47
- In the root of this repository type `python build.py`
48
-
- The hex file will be built `MICROBIT.HEX` and placed in the root folder.
48
+
- The hex file will be built `MICROBIT.hex` and placed in the root folder.
49
49
50
50
# Developing
51
51
You will find a simple main.cpp in the `source` folder which you can edit. CODAL will also compile any other C/C++ header files our source files with the extension `.h .c .cpp` it finds in the source folder.
@@ -61,7 +61,7 @@ To use it, simply copy the additional json entries into your `codal.json` file,
61
61
If you are using Visual Studio Code, there is a working debugging environment already set up for you, allowing you to set breakpoints and observe the micro:bit's memory. To get it working, follow these steps:
62
62
63
63
1. Install either [OpenOCD](http://openocd.org) or [PyOCD](https://github.com/pyocd/pyOCD).
64
-
2. Install the `marus25.cortex-debug` VS Code extension.
64
+
2. Install the [`marus25.cortex-debug` VS Code extension](https://marketplace.visualstudio.com/items?itemName=marus25.cortex-debug).
65
65
3. Build your program.
66
66
4. Click the Run and Debug option in the toolbar.
67
67
5. Two debugging options are provided: one for OpenOCD, and one for PyOCD. Select the correct one depending on the debugger you installed.
0 commit comments