Skip to content

Commit 491b7bd

Browse files
committed
Fix rebase issues and add ARM GCC environment setup to README.md
1 parent c3a3ae1 commit 491b7bd

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

ports/analog/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,10 @@ clean-all:
267267
# If the MSDK is installed, flash-msdk can be run to utilize the the modified
268268
# openocd with the algorithms
269269
MAXIM_PATH := $(subst \,/,$(MAXIM_PATH))
270+
OPENOCD ?= $(MAXIM_PATH)/Tools/OpenOCD/openocd
271+
OPENOCD_SCRIPTS ?= $(MAXIM_PATH)/Tools/OpenOCD/scripts
270272
flash-msdk:
271-
$(MAXIM_PATH)/Tools/OpenOCD/openocd -s $(MAXIM_PATH)/Tools/OpenOCD/scripts \
273+
$(OPENOCD) -s $(OPENOCD_SCRIPTS) \
272274
-f interface/cmsis-dap.cfg -f target/$(MCU_VARIANT_LOWER).cfg \
273275
-c "program $(BUILD)/firmware.elf verify; init; reset; exit"
274276

ports/analog/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ This port brings CircuitPython to ADI's "MAX32" series of microcontrollers. Thes
1616

1717
## Building for MAX32 devices
1818

19-
Ensure CircuitPython dependencies are up-to-date by following the CircuitPython introduction on Adafruit's Website: [Building CircuitPython - Introduction](https://learn.adafruit.com/building-circuitpython/introduction). In particular, it is necessary to fetch all submodules (including the ARM Toolchain inside MSDK) and build the `mpy-cross` compiler.
19+
Ensure CircuitPython dependencies are up-to-date by following the CircuitPython introduction on Adafruit's Website: [Building CircuitPython - Introduction](https://learn.adafruit.com/building-circuitpython/introduction). You will require the [ARM GNU Toolchain](https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads), with ARM GCC >=13.x. It is also necessary to fetch all submodules and build the `mpy-cross` compiler, per the "Building CircuitPython" guide.
2020

21-
Ensure the MSDK's ARM toolchain is contained on your PATH. This can be done in MinGW or WSL by exporting a prefix to the PATH variable:
21+
Ensure the ARM toolchain is contained on your PATH. This can be done in MinGW or WSL by exporting a prefix to the PATH variable. The author's path is included below as an example:
2222

23-
$ export MSDK_GNU_PATH=<CircuitPy_Path>/ports/analog/msdk/Tools/GNUTools/10.3/bin
24-
$ export PATH=$MSDK_GNU_PATH:$PATH
23+
$ export ARM_GNU_PATH=C:/x-tools/arm-win/arm-none-eabi-w64-i686-13.3rel1/bin
24+
$ export PATH=$ARM_GNU_PATH:$PATH
2525

26-
This needs to be done each time you open a command environment to build CircuitPython.
26+
This needs to be done each time you open a command environment to build CircuitPython. It can be useful to set up a simple shell script for this.
2727

2828
Once you have built `mpy-cross` and set up your build system for CircuitPython, you can build for MAX32 devices using the following commands:
2929

0 commit comments

Comments
 (0)