Skip to content

Latest commit

 

History

History
69 lines (58 loc) · 2.16 KB

File metadata and controls

69 lines (58 loc) · 2.16 KB

GOTIME - OS PINETIME

pinetime

Setup Env

brew tap tinygo-org/tools
brew install tinygo
brew tap ArmMbed/homebrew-formulae

Build

tinygo build -o firmware.hex -target=pinetime-devkit0  /Users/leesander/go/src/github.com/leesander1/gotime/cmd/smartwatch
tinygo build -o firmware.hex -target=pinetime-devkit0  /Users/leesander/go/src/github.com/leesander1/gotime/cmd/example/blink

Flash

tinygo flash -target=pinetime-devkit0 -programmer=stlink /Users/leesander/go/src/github.com/leesander1/gotime/cmd/smartwatch
openocd \
-c 'source [find interface/stlink.cfg]' \
-c 'transport select hla_swd' \
-c 'source [find target/nrf52.cfg]' \
-c 'init' \
-c 'halt' \
-c 'nrf5 mass_erase' \
-c 'program firmware.hex verify' \
-c 'reset' \
-c 'exit'

Reset

openocd \
-c 'source [find interface/stlink.cfg]' \
-c 'transport select hla_swd' \
-c 'source [find target/nrf52.cfg]' \
-c 'init' \
-c 'halt' \
-c 'nrf5 mass_erase' \
-c 'exit'

Links