Controller update help

I havent had a chance to be back in front of my Windows desktop to do a screen recoding but didnt want to leave you hanging.

In the meantime here are some directions on what worked for me (should be basically the same on all platforms)
This will be similar to what Adafruit describes here

We’ll want to download their config file from here.

You’ll want to download the OpenOCD software. The easiest way is to download the prebuilt binaries from here Releases · xpack-dev-tools/openocd-xpack · GitHub
Once you unzip that just put it in an easy to remember directory.
Do the same with the bootloader file Adafruit-Feather-M0-Basic-Proto-PCB/featherm0bootloader_151101.hex at master · adafruit/Adafruit-Feather-M0-Basic-Proto-PCB · GitHub
and the firmware file
https://github.com/openppg/eppg-controller/releases/download/v5.3/eppg-controller.ino.hex

Attach your OpenPPG controller to the SWD connector using the ribbon cable. Plug in the controller to USB to power it up and plug in the flashing tool to USB on your computer.
Open up a terminal window and navigate to the unzip OpenOCD folder from your download and go to bin/ where you’ll see the program (eg openocd.exe)
For using OpenOCD tool to flash microcontroller you’ll first want to connect to the micro controller by running the openocd program with the specified config file for this specific chip that you download from the adafruit github
$ .\openocd -f arduino_zero.cfg
You should see some output in the terminal that its detected the chip etc. If it keeps spitting out more info then its probably still trying to connect.

In another terminal window youll need to actually connect to the debugger chip by running
$ telnet localhost 4444
you should see a prompt that you are running in the on-chip debugger
In the new telnet command prompt run
> reset halt
next we’ll flash the bootloader with
> load_image featherm0bootloader_151101.hex
It should show that it successfully wrote a number of bytes to the memory. Technically at this point you should have the bootloader on the controller and be able to double tap reset to go into the uf2 mode and paste in the latest .uf2 file, BUT we’ll just flash the firmware file in the same way because its already set up.
> load_image eppg-controller.ino.hex
now the last step
> reset run

Congrats, you should see the controller boot up like normal.

I realize this might not be the best directions and usually a screen recording is easier to follow along, so I still plan on doing that ASAP.

1 Like