DEV Community

Flashing your PineTime using an ST-Link and OpenOCD

Aaron Christiansen on January 07, 2020

The PineTime development kits are now shipping out, and to do anything interesting with yours, you'll probably be looking to flash a firmware on to...
Collapse
 
valpackett profile image
Val Packett • Edited

The build of OpenOCD you can get from your package manager might not work for our purposes, as it probably hasn't been built with CMSIS-DAP support

Much more serious reason: 0.10.0 does not have the nrf5 flash driver, so it would not know any flash banks and program would not work. (Would still be usable with gdb!)

It's possible to do this using a J-Link, but they are very expensive

Cheap clones of J-Link are as cheap as clones of ST-Link :)

Collapse
 
coenschalkwijk profile image
Coen Schalkwijk • Edited

Hey Aaron,

Getting started with my own Pine Time, using the 'Remove nRF52 Flash Protection with Raspberry Pi' to remove the protection, but I'm running into some issues. While I'm searching the web, maybe you could help me out: There's no (clear) reset pin/connection in the Pine Time, is this an optional connection? If not, where to connect it to?

Thank you for your time...

Collapse
 
exchangeeffect profile image
ExchangeEffect

I am going to install wasp-os pre-build firmware github.com/daniel-thompson/wasp-os... Does anybody know what the instructions are to do that in openocd I do not see a script that will help be upload the bootloader.hex example ./install-sh bootloader.hex

Collapse
 
jones139 profile image
Graham Jones

Thank you for sharing this - I've just received my PineTime development kit, and was wondering where to start with it!

Collapse
 
lj profile image
Leo

Really appreciated this article. Any chance you can show how to get print/debug statements from OpenOCD and PineTime.